Fibonomial
Time limit2sMemory limit512 MB
Count the exponent of each integer k from 2 to p in the product of the first n Fibonacci numbers.
- Level
Hard8 of 10
- Topics
- Number theory, Math
- Solved
- No attempts yet
Problem
The Fibonacci sequence is defined as follows.
The Fibonomial () is defined as , the product of through .
For each integer with , write a program that reports how many times has to be divided by before is no longer divisible by .
Input
The first line holds two integers and , separated by one space. (, )
Output
Print the answers on lines. Line () holds how many times has to be divided by before is no longer divisible by .
Hint
, so can be divided by nine times and by four times.