OFFSET
0,1
COMMENTS
a(n) is divisible by 8. 2^(3+4k) divides a(4k) and a(4k+2). 8k divides a(4k-1). 4(4k+2) divides a(4k+1). - Alexander Adamchuk, Nov 18 2006
LINKS
Harry J. Smith, Table of n, a(n) for n = 0..100
FORMULA
EXAMPLE
a(1) = |0^1 - 2^3| = 8, a(2) = |1^2 - 3^4| = 80.
MATHEMATICA
Table[(-n^(n+1)+(n+2)^(n+3)), {n, 0, 18}] (* Alexander Adamchuk, Nov 18 2006 *)
#[[3]]^#[[4]]-#[[1]]^#[[2]]&/@Partition[Range[0, 20], 4, 1] (* Harvey P. Dale, Oct 07 2023 *)
PROG
(PARI) { for (n=0, 100, write("b060375.txt", n, " ", (n + 2)^(n + 3) - n^(n + 1)); ) } \\ Harry J. Smith, Jul 04 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Jason Earls, Apr 02 2001
EXTENSIONS
More terms from Larry Reeves (larryr(AT)acm.org), Apr 20 2001
Better description from Alexander Adamchuk, Nov 18 2006
STATUS
approved