login
A155499
a(n) = n + (n+1)^(n+2).
3
1, 9, 83, 1027, 15629, 279941, 5764807, 134217735, 3486784409, 100000000009, 3138428376731, 106993205379083, 3937376385699301, 155568095557812237, 6568408355712890639, 295147905179352825871
OFFSET
0,2
COMMENTS
All the terms are evidently odd. If n is even, a(n) is (n+1) mod 8; if n is odd, a(n) is n mod 8.
Thus the sequence of remainders by dividing a(n) by 8 is given by 1, 1, 3, 3, 5, 5, 7, 7, 1, 1...
LINKS
EXAMPLE
If n=2, a(2)=2+3^4=83.
MATHEMATICA
Table[n +(n+1)^(n+2), {n, 20}] (* or *) #[[1]]+#[[2]]^#[[3]]&/@ Partition[ Range[20], 3, 1] (* Harvey P. Dale, Mar 14 2012 *)
PROG
(PARI) a(n) = n+(n+1)^(n+2); \\ Michel Marcus, Feb 20 2016
CROSSREFS
Sequence in context: A015579 A162759 A147960 * A321294 A242596 A180807
KEYWORD
nonn
AUTHOR
Avik Roy (avik_3.1416(AT)yahoo.co.in), Jan 23 2009
EXTENSIONS
Added the first term 1 by Vincenzo Librandi, Mar 15 2012
STATUS
approved