Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A145382
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A145382 Write the nth prime in binary. Change all 0's to 1's and all 1's to 0's. a(n) is the decimal equivalent of the result. +0
2
1, 0, 2, 0, 4, 2, 14, 12, 8, 2, 0, 26, 22, 20, 16, 10, 4, 2, 60, 56, 54, 48, 44, 38, 30, 26, 24, 20, 18, 14, 0, 124, 118, 116, 106, 104, 98, 92, 88, 82, 76, 74, 64, 62, 58, 56, 44, 32, 28, 26, 22, 16, 14, 4, 254, 248, 242, 240, 234, 230, 228, 218, 204, 200, 198, 194, 180, 174 (list; graph; listen)
OFFSET

1,3

COMMENT

a(n) = A035327(p(n)), where p(n) is the nth prime.

LINKS

Leroy Quet, Home Page (listed in lieu of email address)

FORMULA

a(n)=2^{1+floor(log[2](p(n)))}-n-1, where p(n) is the nth prime. [From Emeric Deutsch (deutsch(AT)duke.poly.edu), Oct 19 2008]

MAPLE

f:=proc(n) options operator, arrow: 2^(1+floor(log[2](n)))-n-1 end proc: seq(f(ithprime(n)), n=1..71); [From Emeric Deutsch (deutsch(AT)duke.poly.edu), Oct 19 2008]

CROSSREFS

A035327

Sequence in context: A163123 A068773 A133168 this_sequence A078909 A067458 A088330

Adjacent sequences: A145379 A145380 A145381 this_sequence A145383 A145384 A145385

KEYWORD

base,nonn

AUTHOR

Leroy Quet, Oct 09 2008

EXTENSIONS

Extended by Emeric Deutsch (deutsch(AT)duke.poly.edu), Oct 19 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 30 13:13 EST 2009. Contains 167758 sequences.


AT&T Labs Research