login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A053332
a(n) contains n digits (either '4' or '7') and is divisible by 2^n.
2
4, 44, 744, 7744, 47744, 447744, 4447744, 44447744, 444447744, 4444447744, 74444447744, 474444447744, 4474444447744, 44474444447744, 444474444447744, 7444474444447744, 77444474444447744, 477444474444447744
OFFSET
1,1
LINKS
FORMULA
a(n) = a(n-1)+10^(n-1)*(4+3*[a(n-1)/2^(n-1) mod 2]) i.e. a(n) ends with a(n-1); if (n-1)-th term is divisible by 2^n then n-th term begins with a 4, if not then n-th term begins with a 7.
MATHEMATICA
Flatten[Table[Select[FromDigits/@Tuples[{4, 7}, n], Divisible[#, 2^n]&], {n, 20}]] (* Harvey P. Dale, Jul 25 2011 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Henry Bottomley, Mar 06 2000
STATUS
approved