A213708 a(n) is the least inverse of A071542, i.e., minimal i such that A071542(i) = n.
0, 1, 2, 4, 6, 8, 10, 12, 16, 18, 20, 24, 28, 32, 34, 36, 40, 44, 48, 52, 56, 60, 64, 66, 68, 72, 76, 80, 84, 88, 92, 96, 100, 104, 108, 112, 116, 120, 126, 128, 130, 132, 136, 140, 144, 148, 152, 156, 160, 164, 168, 172, 176, 180, 184, 190, 192, 196, 200, 204, 208, 212, 216, 222, 226, 232, 238, 244, 250, 256, 258, 260, 264, 268, 272, 276
Offset: 0
Keywords
Links
- Antti Karttunen, Table of n, a(n) for n = 0..16500
Crossrefs
Programs
-
Mathematica
Function[s, Map[FirstPosition[s, #] &, Union@ s]]@ Table[-1 + Length@ NestWhileList[# - DigitCount[#, 2, 1] &, n, # > 0 &], {n, 276}] // Flatten (* Michael De Vlieger, Jul 16 2017 *)
Comments