1,2

This sequence is a variant of A330636.

Rémy Sigrist, Table of n, a(n) for n = 1..10000

Rémy Sigrist, Scatterplot of the ordinal transform of the first 1000000 terms

Rémy Sigrist, C program for A330721

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

(C) See Links section.

Cf. A330636.

Sequence in context: A303536 A259656 A096370 * A076622 A194513 A344018

Adjacent sequences: A330718 A330719 A330720 * A330722 A330723 A330724

nonn

Rémy Sigrist, Dec 28 2019

approved