Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A166456
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A166456 Row sums of triangle A166455 +0
2
1, 2, 6, 12, 30, 60, 124, 248, 510, 1020, 2044, 4088, 8188, 16376, 32760, 65520, 131070, 262140, 524284, 1048568, 2097148, 4194296, 8388600, 16777200, 33554428, 67108856, 134217720, 268435440, 536870904, 1073741808, 2147483632 (list; graph; listen)
OFFSET

0,2

FORMULA

a(n)=2^(n+1)-A001316(n). [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Oct 30 2009]

EXAMPLE

a(3) = 12 = (1 + 5 + 5 + 1)

PROGRAM

Contribution from R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Oct 30 2009: (Start)

(Python) def A000120(n):

...a=0

...while n > 0:

......a += n % 2

......n //= 2

...return a

def A001316(n):

...return 2**A000120(n)

def A166456(n):

...return 2**(n+1)-A001316(n)

print([A166456(n) for n in range(0, 80)])

(End)

CROSSREFS

A166455

Sequence in context: A080742 A005417 A058215 this_sequence A162214 A100071 A129912

Adjacent sequences: A166453 A166454 A166455 this_sequence A166457 A166458 A166459

KEYWORD

nonn,new

AUTHOR

Gary W. Adamson (qntmpkt(AT)yahoo.com), Oct 14 2009

EXTENSIONS

Extended by R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Oct 30 2009

page 1

Search completed in 0.005 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 24 23:16 EST 2009. Contains 167481 sequences.


AT&T Labs Research