OFFSET
1,2
COMMENTS
All primes p are written in number-system of base one so rather long strings of 11...111 arise.
FORMULA
n in base A001221(n).
EXAMPLE
a(6469693230) = 6469693230.
Symbol A to denote "10" first appears at n = 200560490130 = A002110(11).
MATHEMATICA
tn[x_] := Fold[nd, 0, x]; Do[s=lf[n]; If[Equal[s, 1], Print[tn[Table[1, {i, 1, n}]]]]; If[ !Equal[s, 1], Print[tn[IntegerDigits[n, s]]]], {n, 2, 211}]
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Labos Elemer, Dec 16 2003
STATUS
approved