login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A111002 a(n) = gcd( f(n), f(n+1)) where f(n) = n^4+n^2+1. 0
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; refs; listen; history; internal format)
OFFSET

0,2

LINKS

PlanetMath, Example of GCD

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 *)

PROG

(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 * A042481 A177495 A088419

Adjacent sequences:  A110999 A111000 A111001 * 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, Oct 02 2005

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 02:48 EST 2012. Contains 205978 sequences.