The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A279882 a(n) = 2^(prime(n) + 1) - 1. 1
7, 15, 63, 255, 4095, 16383, 262143, 1048575, 16777215, 1073741823, 4294967295, 274877906943, 4398046511103, 17592186044415, 281474976710655, 18014398509481983, 1152921504606846975, 4611686018427387903, 295147905179352825855, 4722366482869645213695 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Numbers whose binary representation is 1 repeated (prime(n)+1) times.
The only prime term is 7.
LINKS
FORMULA
a(n) = A101304(n) - 2.
a(n) = A000225(A008864(n)). - Felix Fröhlich, Dec 21 2016
EXAMPLE
For n=3; a(3) = 2^(prime(3) + 1) - 1 = 2^(5 + 1) - 1 = 2^6 - 1 = 63.
MAPLE
A279882:=n->2^(ithprime(n)+1)-1: seq(A279882(n), n=1..30); # Wesley Ivan Hurt, Jan 23 2017
MATHEMATICA
f[n_] := 2^(Prime[n]+1)-2; Array[f, 20] (* Robert G. Wilson v, Dec 21 2016 *)
PROG
(Magma) [2^(NthPrime(n)+1)-1: n in[1..50]]
(PARI) a(n) = 2^(prime(n)+1)-1 \\ Felix Fröhlich, Dec 21 2016
CROSSREFS
Cf. A101304 (2^(prime(n)+1)+1), A098102 (2^(prime(n)-1)-1), A278741 (2^(prime(n)-1)+1).
Sequence in context: A146159 A187986 A039789 * A171064 A042313 A058206
KEYWORD
nonn,easy
AUTHOR
Jaroslav Krizek, Dec 21 2016
STATUS
approved

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 June 10 23:37 EDT 2024. Contains 373283 sequences. (Running on oeis4.)