|
Search: id:A111002
|
|
|
| A111002 |
|
a(n) = gcd( f(n), f(n+1)) where f(n) = n^4+n^2+1. |
|
+0 1
|
|
| 1, 3, 7, 91, 21, 31, 43, 57, 73, 91, 777, 133, 157, 183, 211, 241, 273, 2149, 343, 381, 421, 463, 507, 553, 4207, 651, 703, 757, 813, 871, 931, 6951, 1057, 1123, 1191, 1261, 1333, 1407, 10381, 1561, 1641, 1723, 1807, 1893, 1981, 14497, 2163, 2257, 2353
(list; graph; listen)
|
|
|
OFFSET
|
0,2
|
|
|
LINKS
|
Author?, More information
|
|
FORMULA
|
a(n) = gcd(f(n), f(n+1)) for all n. a(n) = n^2+n+1, except when n congruent to 3 modulo 7 when a(n) = 7(n^2+n+1).
|
|
EXAMPLE
|
a(10) = 7(10^2+10+1) = 777 because 10 is congruent to 3 modulo 7.
|
|
MATHEMATICA
|
f[n_] := n^4 + n^2 + 1; Table[ GCD[f[n], f[n + 1]], {n, 0, 49}] (* Robert G. Wilson v *)
|
|
PROGRAM
|
(PARI) m=50; a=3; for(k=2, m, b=k^4+k^2+1; print1(gcd(a, b), ", "); a=b) (Brockhaus)
|
|
CROSSREFS
|
Sequence in context: A041705 A137130 A058379 this_sequence A042481 A088419 A062592
Adjacent sequences: A110999 A111000 A111001 this_sequence A111003 A111004 A111005
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
Pahikkala Jussi (pahio(AT)wakkanet.fi), Sep 30 2005
|
|
EXTENSIONS
|
More terms from Robert G. Wilson v (rgwv(at)rgwv.com) and Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), Oct 02 2005
|
|
|
Search completed in 0.002 seconds
|