OFFSET
0,3
COMMENTS
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..8191
Rémy Sigrist, Colored scatterplot of the first 2^16 terms (where the color is function of A005811(n))
Rémy Sigrist, PARI program for A341910
Rémy Sigrist, PARI program for A341910 (faster)
EXAMPLE
The first terms, in decimal and in binary, are:
n a(n) bin(n) bin(a(n))
-- ---- ------- ---------
0 0 0 0
1 1 1 1
2 3 10 11
3 2 11 10
4 5 100 101
5 7 101 111
6 6 110 110
7 4 111 100
8 9 1000 1001
9 11 1001 1011
10 15 1010 1111
MATHEMATICA
Block[{a = {0}, k}, Do[k = 1; While[Nand[FreeQ[a, k], DigitCount[k, 2, 1] == #], k++] &@ Length[Split@ IntegerDigits[i, 2]]; AppendTo[a, k], {i, 67}]; a] (* Michael De Vlieger, Feb 24 2021 *)
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
AUTHOR
Rémy Sigrist, Feb 23 2021
STATUS
approved