OFFSET
1,2
COMMENTS
This sequence is a variant of A330636.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
Rémy Sigrist, C program for A330721
EXAMPLE
The first terms, alongside the corresponding forbidden values, are:
n a(n) k=1 k=2 k=3
-- ---- --- --- ---
1 1
2 2 1
3 1 0
4 2 1
5 1 0 2
6 2 1 1
7 1 0 2
8 2 1 1
9 1 0 2
10 2 1 1 3
11 3 0 2 1
12 2 0 1 3
PROG
(C) See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Dec 28 2019
STATUS
approved