The Fibonacci sequence fn is defined as follows.
f0=0,f1=1,fn=fn−1+fn−2(n≥2)
The Fibonomial Fn (n≥1) is defined as Fn=f1×f2×⋯×fn, the product of f1 through fn.
For each integer k with 2≤k≤p, write a program that reports how many times Fn has to be divided by k before Fn is no longer divisible by k.
The first line holds two integers n and p, separated by one space. (1≤n≤109, 2≤p≤103)
Print the answers on p−1 lines. Line i (1≤i≤p−1) holds how many times Fn has to be divided by i+1 before Fn is no longer divisible by i+1.
F12=1570247078400=29×34×52×7×11×13×17×89, so F12 can be divided by 2 nine times and by 4 four times.