Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A108019
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A108019 a(n)=(8^n-1)*4/7. +0
2
0, 4, 36, 292, 2340, 18724, 149796, 1198372, 9586980, 76695844, 613566756, 4908534052, 39268272420, 314146179364, 2513169434916, 20105355479332, 160842843834660, 1286742750677284, 10293942005418276, 82351536043346212 (list; graph; listen)
OFFSET

0,2

COMMENT

Numbers n whose binary representation is 100, n times.

FORMULA

a(n)=8*a(n-1)+4 (with a(1)=0) [From Vincenzo Librandi (vincenzo.librandi(AT)tin.it), Oct 31 2009]

EXAMPLE

a(3)=292 because 292 translated in base 2 is three times 100: 100100100.

Octal...............decimal (comment from Zerinvary Lajos (zerinvarylajos(AT)yahoo.com), Jan 14 2007):

0......................0

4......................4

44....................36

444..................292

4444................2340

44444..............18724

444444............149796

4444444..........1198372

44444444.........9586980

444444444.......76695844

4444444444.....613566756

etc. ...............etc.

For n=2, a(2)=8*0+4=4; n=3, a(3)=8*4+4=36; n=4, a(4)=8*36+4=292 [From Vincenzo Librandi (vincenzo.librandi(AT)tin.it), Oct 31 2009]

MATHEMATICA

Table[ FromDigits[ Flatten[ Table[{1, 0, 0}, {i, n}]], 2], {n, 0, 19}] (from Robert G. Wilson v (rgwv(AT)rgwv.com), Jun 01 2005)

s=0; lst={s}; Do[s+=2^n; AppendTo[lst, s], {n, 2, 5!, 3}]; lst [From Vladimir Orlovsky (4vladimir(AT)gmail.com), Nov 07 2008]

PROGRAM

(PARI) a(n)=if(n<0, 0, (8^n-1)*4/7) (Michael Somos)

CROSSREFS

Sequence in context: A144889 A098916 A059416 this_sequence A093186 A000765 A026334

Adjacent sequences: A108016 A108017 A108018 this_sequence A108020 A108021 A108022

KEYWORD

easy,nonn,new

AUTHOR

Alexandre Wajnberg (alexandre.wajnberg(AT)ulb.ac.be), May 31 2005

EXTENSIONS

More terms from Robert G. Wilson v (rgwv(AT)rgwv.com), Jun 01 2005

simplify! [From Vladimir Orlovsky (4vladimir(AT)gmail.com), Nov 07 2008]

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 23 17:09 EST 2009. Contains 167438 sequences.


AT&T Labs Research