OFFSET
1,3
COMMENTS
In order to compare this sequence and A005185 see the scatterplot in Links section. Note that A283025 is the sequence that focuses on the remainders when sum of first n terms of A005185 is divided by n. Absolute values of first differences of A283025 keeps the main characteristic of A005185 with deviations.
LINKS
Altug Alkan, Table of n, a(n) for n = 1..10000
Altug Alkan, Scatterplot of A005185 and A283360
Pavel Trojovský, On Some Properties of the Hofstadter-Mertens Function, Nonlinear Dynamics of Complex Systems, Vol. 2020, Article ID 1816756.
MATHEMATICA
Block[{a}, a[1] = a[2] = 1; a[n_] := a[n] = a[n - a[n - 1]] + a[n - a[n - 2]]; Abs@ Differences@ MapIndexed[Mod[#1, First[#2]] &, Accumulate@ Array[a[#] &, 75]]] (* Michael De Vlieger, Dec 18 2020 *)
PROG
(PARI) a=vector(1001); a[1]=a[2]=1; for(n=3, #a, a[n]=a[n-a[n-1]]+a[n-a[n-2]]); va = vector(#a, n, sum(k=1, n, a[k]) % n);
for (k=1, 1000, print1(abs(va[k+1] - va[k]) ", "));
CROSSREFS
KEYWORD
nonn
AUTHOR
Altug Alkan, Mar 05 2017
STATUS
approved