OFFSET
0,4
LINKS
Eric Weisstein's World of Mathematics, Repunit.
FORMULA
For n > 0, a(2n) is represented as a string of n 1's and a(2n+1) as a string of (n-1) 2's followed by a 3.
EXAMPLE
a(8)= 1111 because A001045(8)= 85 (in base 10) = 64 + 16 + 4 + 1 = 1 * (4^3) + 1 * (4^2) + 1 * (4^1) + 1.
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Matthew Vandermast, Apr 11 2003
STATUS
approved