login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A089129 Greatest common divisor of n^2 - 7 and n^2 + 7. 1
7, 2, 1, 2, 1, 2, 1, 14, 1, 2, 1, 2, 1, 2, 7, 2, 1, 2, 1, 2, 1, 14, 1, 2, 1, 2, 1, 2, 7, 2, 1, 2, 1, 2, 1, 14, 1, 2, 1, 2, 1, 2, 7, 2, 1, 2, 1, 2, 1, 14, 1, 2, 1, 2, 1, 2, 7, 2, 1, 2, 1, 2, 1, 14, 1, 2, 1, 2, 1, 2, 7, 2, 1, 2, 1, 2, 1, 14, 1, 2, 1, 2, 1, 2, 7, 2, 1, 2, 1, 2, 1, 14, 1, 2, 1, 2, 1, 2, 7, 2, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
a(n) is the product of the periodic sequences [1,2]*[7,1,1,1,1,1,1]. - Gary Detlefs, Apr 22 2011
LINKS
FORMULA
From Gary Detlefs, Apr 22 2011: (Start)
a(n) = gcd(n+7, 14).
a(n) = (6*(1-(n^6 mod 7))+1)*((n mod 2)+1). (End)
PROG
(PARI) g(n, k) = for(x=0, n, print1(gcd(x^k-7, x^k+7)", "))
(Magma) [Gcd(n^2+7, n^2-7): n in [0..100] ]; // Vincenzo Librandi, Apr 22 2011
CROSSREFS
Sequence in context: A021585 A103713 A197184 * A100957 A191856 A220862
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, Dec 05 2003
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 09:48 EDT 2024. Contains 371905 sequences. (Running on oeis4.)