1,2

Inspired by A308622.

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

a(4) = 2 because a(4) = round((4-1)/2) = 2.

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

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

Cf. A308622.

Sequence in context: A216448 A216763 A112759 * A096862 A029309 A049819

Adjacent sequences: A309968 A309969 A309970 * A309972 A309973 A309974

nonn,look

Altug Alkan, Aug 25 2019

approved