login
A076591
a(1)=1, a(2)=2 a(n)=a(n-1)+(a(n-2) mod n).
0
1, 2, 3, 5, 8, 13, 14, 19, 24, 33, 35, 44, 53, 55, 63, 70, 82, 98, 104, 122, 142, 154, 158, 168, 176, 188, 202, 222, 250, 262, 264, 270, 270, 302, 327, 341, 372, 409, 430, 439, 459, 478, 507, 545, 557, 596, 636, 656, 704, 710, 751, 785, 794, 823, 847, 886, 935
OFFSET
1,2
FORMULA
(4*a(n)-n^2)/n^(3/2) is bounded
MATHEMATICA
RecurrenceTable[{a[1]==1, a[2]==2, a[n]==a[n-1]+Mod[a[n-2], n]}, a, {n, 60}] (* Harvey P. Dale, Apr 28 2016 *)
CROSSREFS
Sequence in context: A010076 A182444 A138183 * A078695 A121367 A308495
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Nov 10 2002
STATUS
approved