login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A139238
First differences of Mersenne numbers A001348.
5
4, 24, 96, 1920, 6144, 122880, 393216, 7864320, 528482304, 1610612736, 135291469824, 2061584302080, 6597069766656, 131941395333120, 8866461766385664, 567453553048682496, 1729382256910270464, 145268109580462718976, 2213609288845146193920
OFFSET
1,1
COMMENTS
Also, first differences of 2^prime(n) = A034785(n). - Wesley Ivan Hurt, Jul 02 2014
LINKS
FORMULA
a(n) = A001348(n+1) - A001348(n).
a(n) = A034785(n+1) - A034785(n). - Wesley Ivan Hurt, Jul 02 2014
EXAMPLE
a(2)=24 because A001348(2)=7 and A001348(2+1)=31 then 31-7 = 24.
MAPLE
A139238:=n->2^ithprime(n+1)-2^ithprime(n): seq(A139238(n), n=1..20); # Wesley Ivan Hurt, Jul 02 2014
MATHEMATICA
Table[2^Prime[n + 1] - 2^Prime[n], {n, 20}] (* Wesley Ivan Hurt, Jul 02 2014 *)
PROG
(PARI) for(n=1, 20, d=2^prime(n+1)-2^prime(n); print1(d, ", ")) \\ Felix Fröhlich, Jun 30 2014
KEYWORD
easy,nonn
AUTHOR
Omar E. Pol, Apr 19 2008
EXTENSIONS
a(10)-a(19) from Felix Fröhlich, Jun 30 2014
STATUS
approved