A257925 a(n) = (n^2 - n + 1)*(n^2 + n - 1).
1, 15, 77, 247, 609, 1271, 2365, 4047, 6497, 9919, 14541, 20615, 28417, 38247, 50429, 65311, 83265, 104687, 129997, 159639, 194081, 233815, 279357, 331247, 390049, 456351, 530765, 613927, 706497, 809159, 922621
Offset: 1
Examples
For n=1, a(1) = 1; For n=2, a(2) = 15; For n=3, a(3) = 77.
Links
- International Mathematical Olympiad 2012, Number Theory Question 4
Programs
-
Mathematica
Table[(n^2-n+1)(n^2+n-1),{n,40}] (* Harvey P. Dale, Apr 18 2019 *)
-
PARI
a(n) = (n^2 - n + 1)*(n^2 + n - 1); \\ Michel Marcus, Apr 17 2016
Formula
a(n) = (n^2 - n + 1)*(n^2 + n - 1).
Comments