luogu#P2626. 斐波那契数列(升级版)
斐波那契数列(升级版)
Background
Everyone knows that the Fibonacci sequence satisfies the following properties:
- .
- .
- (where and is an integer).
Problem Description
Please compute the -th Fibonacci number, take it , and factor the result into prime factors.
Input Format
Input a positive integer .
Output Format
Output the prime factorization of the -th Fibonacci number after applying .
5
5=5
6
8=2*2*2
Hint
.
Translated by ChatGPT 5