Hardcore String Counting 2

아직 제출이 없습니다시간 제한2초메모리 제한512 MB

문제

What happened to "Hardcore String Counting 1"? That's a secret!

A non-empty word vv over some alphabet is a square if it can be represented as v=wwv = ww for some word ww.

A word is square-free if all its non-empty substrings are not squares.

Your task is to compute the number of square-free words of length \ell over the alphabet {a, b, c} for each \ell from 11 to nn.

입력

The only line of the input contains an integer nn (1n1201 \leq n \leq 120).

출력

For each \ell from 11 to nn, print the number of square-free words of length \ell over the alphabet {a, b, c} on a separate line.

힌트

You can see https://oeis.org/A006156 for more details, but this probably won't help you much.