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!)
A325912 a(n) = (-1)^n * Sum_{k=0..n} (-1)^k*2^(2^k). 2
2, 2, 14, 242, 65294, 4294902002, 18446744069414649614, 340282366920938463444927863362353561842, 115792089237316195423570985008687907852929702298719625576012656144550776078094 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
FORMULA
a(n) = A001146(n) - a(n-1).
EXAMPLE
a(0) = 2^1 = 2.
a(1) = 2^2 - 2^1 = 2.
a(2) = 2^4 - 2^2 + 2^1 = 14.
a(3) = 2^8 - 2^4 + 2^2 - 2^1 = 242.
a(4) = 2^16 - 2^8 + 2^4 - 2^2 + 2^1 = 65294.
MATHEMATICA
a[n_] := (-1)^n * Sum[(-1)^k * 2^(2^k), {k, 0, n}]; Array[a, 9, 0] (* Amiram Eldar, May 07 2021 *)
PROG
(PARI) {a(n) = (-1)^n*sum(k=0, n, (-1)^k*2^2^k)}
CROSSREFS
Sequence in context: A291376 A273319 A009773 * A365086 A185044 A185244
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Sep 08 2019
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 August 16 23:15 EDT 2024. Contains 375195 sequences. (Running on oeis4.)