login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A158324 Successive powers of two, represented as binary coded decimal. (0x1, 0x2, 0x4, 0x8, 0x16, 0x32, etc.) 0

%I #4 Jun 11 2013 11:47:38

%S 1,2,4,8,22,50,100,296,598,1298,4132,8264,16534,33170,91012,206696,

%T 415030,1249394,2498884,5390984,17073526,34173266,68764420,137922056,

%U 376926742,861226034,1729136740,5169575720,10339177558,22389655826

%N Successive powers of two, represented as binary coded decimal. (0x1, 0x2, 0x4, 0x8, 0x16, 0x32, etc.)

%o (PARI) a(n) = {d = digits(2^(n-1), 10); return (sum(i=1, #d, d[i]*16^(#d-i)));} \\ _Michel Marcus_, Jun 11 2013

%K base,nonn

%O 1,2

%A Joshua Neal (joshua(AT)trochotron.com), Mar 16 2009

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 29 02:23 EDT 2024. Contains 371264 sequences. (Running on oeis4.)