OFFSET
1,1
COMMENTS
a(n) is a sum of two k-th powers of positive integers for k=1,2,...,n.
FORMULA
a(n) = 2^(n!) + 1.
a(n) = A050923(n) + 1.
EXAMPLE
a(3) = 2^6 + 1 = 65.
MATHEMATICA
Array[2^#! + 1 &, 6] (* Paolo Xausa, Jan 31 2024 *)
PROG
(PARI) first(m)=vector(m, i, 2^(i!)+1); /* Anders Hellström, Aug 08 2015 */
(Magma) [2^(Factorial(n)) + 1: n in [1..6]]; // Vincenzo Librandi, Aug 09 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Marco Ripà, Aug 08 2015
STATUS
approved