OFFSET
0,4
COMMENTS
a(1)=1 by convention. The g.f. is only a conjecture.
LINKS
N. J. A. Sloane, Table of n, a(n) for n = 0..255
D. Applegate, M. LeBrun and N. J. A. Sloane, Dismal Arithmetic [Note: we have now changed the name from "dismal arithmetic" to "lunar arithmetic" - the old name was too depressing]
FORMULA
G.f.: x + x^3/(1-x) + Sum(x^l*(1-x)^2/(1-2*x+x^(l-1)-x^l+x^(l+2)), l=3..oo). - N. J. A. Sloane, Apr 19 2011
EXAMPLE
a(6) = 4 since 111101 has the divisors 1, 101, 1101, 111101.
a(8) = 10 since 11111101 has the divisors 1, 101, 1001, 1101, 10101, 11001, 11101, 111001, 111101, 11111101.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Adam S. Jobson and N. J. A. Sloane, Mar 26 2011
EXTENSIONS
a(1) in b-file corrected by Andrew Howroyd, Feb 22 2018
STATUS
approved