A035014 a(n) contains n digits (either '3' or '4') and is divisible by 2^n.
4, 44, 344, 3344, 33344, 433344, 3433344, 33433344, 333433344, 3333433344, 43333433344, 343333433344, 3343333433344, 33343333433344, 433343333433344, 3433343333433344, 43433343333433344, 443433343333433344, 3443433343333433344, 43443433343333433344
Offset: 1
Links
- Ray Chandler, Table of n, a(n) for n = 1..1000 (first 100 terms from Jon E. Schoenfield)
Programs
-
Maple
A035014 := proc(n) option remember ; local pre; if n = 1 then 4; else pre := procname(n-1) ; pre+10^(n-1)*(4-modp(pre/2^(n-1),2)) ; end if; end proc: # R. J. Mathar, May 02 2014
-
PARI
a(n) = if (n==1, 4, a(n-1) + 10^(n-1)*(4-(a(n-1)/2^(n-1) % 2))); \\ Michel Marcus, Apr 07 2017
Formula
a(n) = a(n-1) + 10^(n-1)*(4-[a(n-1)/2^(n-1) mod 2]), i.e., a(n) ends with a(n-1). - Henry Bottomley, Feb 14 2000
Extensions
Corrected and extended by Patrick De Geest, Jun 15 1999
More terms from Henry Bottomley, Feb 14 2000
Comments