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
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
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
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, Dec 05 2003
STATUS
approved