1,4

Altug Alkan, Table of n, a(n) for n = 1..10000

Rémy Sigrist, Colored scatterplot of the first 30000 terms (where the color is function of n mod 6)

(PARI) q=vector(100); q[1]=q[2]=q[3]=1; for(n=4, #q, q[n]=round((2*n-q[n-1]-q[n-2])/q[n-3])); q

(MAGMA) I:=[1, 1, 1]; [n le 3 select I[n] else Round((2*n-Self(n-1)-Self(n-2))/Self(n-3)):n in [1..80]]; // Marius A. Burtea, Aug 25 2019

Cf. A308622, A309971.

Sequence in context: A096685 A307150 A195457 * A155964 A144542 A222457

Adjacent sequences: A309971 A309972 A309973 * A309975 A309976 A309977

nonn,easy,look

Altug Alkan and Rémy Sigrist, Aug 25 2019

approved