OFFSET
1,2
COMMENTS
a(n) is understood to be the smallest number >=a(n-2) fitting the description.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
PROG
(PARI) r = vector(69, k, -1); p = 0; for (i=1, #r, v = 1; while (v==p || r[v]==0, v++); r[i]=v; r[v]--; print1 (v ", "); p=v); \\ Rémy Sigrist, Jan 28 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Floor van Lamoen, Nov 14 2005
EXTENSIONS
Offset corrected by Rémy Sigrist, Jan 28 2017
STATUS
approved