OFFSET
1,2
COMMENTS
Inspired by A308622.
LINKS
Altug Alkan, Table of n, a(n) for n = 1..10000
EXAMPLE
a(4) = 2 because a(4) = round((4-1)/2) = 2.
PROG
(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
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Altug Alkan, Aug 25 2019
STATUS
approved