OFFSET
1,5
LINKS
Altug Alkan, Table of n, a(n) for n = 1..10000
Altug Alkan, Alternative Scatterplot of A284124
EXAMPLE
a(5) = 2 because remainder when 4*5 = 20 is divided by A005185(5) = 3 is 2.
MATHEMATICA
a[1] = a[2] = 1; a[n_] := a[n] = a[n - a[n - 1]] + a[n - a[n - 2]]; Table[Mod[4 n, a@ n], {n, 81}] (* Michael De Vlieger, Mar 20 2017 *)
PROG
(PARI) a=vector(1000); a[1]=a[2]=1; for(n=3, #a, a[n]=a[n-a[n-1]]+a[n-a[n-2]]); vector(1000, n, (4*n)%a[n])
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Altug Alkan, Mar 20 2017
STATUS
approved