OFFSET
1,2
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
EXAMPLE
a(31) = gcd(31 * 32, a(30) * (a(30) + 1)) = gcd(31*32, 930*931) = 62
MATHEMATICA
RecurrenceTable[{a[1]==1, a[n]==GCD[n(n+1), a[n-1](a[n-1]+1)]}, a, {n, 90}] (* Harvey P. Dale, Dec 21 2011 *)
PROG
(PARI) { for (n=1, 1000, if (n>1, a=gcd(n*(n + 1), a*(a + 1)), a=1); write("b062321.txt", n, " ", a) ) } \\ Harry J. Smith, Aug 04 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jul 05 2001
STATUS
approved