OFFSET
1,3
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..10000
Wikipedia, Factorial number system
FORMULA
a(n!) = 1, a(n!+1) = 2.
EXAMPLE
n | | a(n)
--+------------------------+-----
1 | 1! | 1
2 | 2! | 1
3 | 1! + 2! | 2
6 | 3! | 1
7 | 3! + 1! | 2
8 | 3! + 2! | 2
9 | 3! + 2! + 1! | 3
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Mar 24 2018
STATUS
approved