OFFSET
1,1
COMMENTS
The factorial base system uses 1!, 2!, 3!, ..., n! instead of powers of b, b^0, b^1, b^2, ... for some base b.
To be consistent with the normal base 10 system, the largest factorial used appears on the left.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..1000
EXAMPLE
prime(6) = 13 = 2*3! + 1! so a(6) = 201.
MAPLE
b:= proc(n, i) local r; `if`(n<i, n,
10*b(iquo(n, i, 'r'), i+1)+ r)
end:
a:= n-> b(ithprime(n), 2):
seq(a(n), n=1..50); # Alois P. Heinz, Mar 16 2013
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jon Perry, Mar 06 2013
STATUS
approved