영어 원문입니다. 원문의 수식·표를 글자로 옮겨 모양이 다를 수 있습니다. 정확한 내용은 원문 페이지에서 확인하세요. 원문 페이지 열기 (새 창)
시간 제한 1초 · 메모리 제한 512 MB
Problem
A functional graph is a directed graph where each node has outdegree 1. For example, here is a functional graph that has 9 nodes and 2 components:
(그림은 원문 페이지에서 볼 수 있습니다)
Given n, your task is to calculate for each k=1 … n the number of functional graphs that have n nodes and k components.
Input
The only input line has an integer n: the number of nodes.
Output
Print n lines: for each k=1 … n the number of graphs modulo 10^9+7.
Constraints
- 1 ≤ n ≤ 5000
예제
예제 1
3
17 9 1