A236246 Indices n for which A229037(n)=1.
1, 2, 4, 5, 10, 11, 13, 14, 28, 29, 31, 32, 37, 38, 40, 41, 82, 83, 85, 86, 92, 93, 96, 105, 111, 112, 115, 116, 122, 177, 236, 237, 244, 245, 247, 266, 267, 270, 276, 277, 283, 294, 301, 302, 347, 558, 628, 638, 646, 647, 649, 655, 669, 674, 685, 686
Offset: 1
Keywords
Links
- Charles R Greathouse IV and Chai Wah Wu, Table of n, a(n) for n = 1..434, First 266 terms from Charles R Greathouse IV.
- Charles R Greathouse IV, [seqfan] Lexicographically first 3-free sequence (2014)
Crossrefs
Subsequence of A241673.
Programs
-
Haskell
a236246 n = a236246_list !! (n-1) a236246_list = filter ((== 1) . a229037) [1..] -- Reinhard Zumkeller, Apr 26 2014
-
Python
A236246_list, A229037_list = [], [] for n in range(10**6): i, j, b = 1, 1, set() while n-2*i >= 0: b.add(2*A229037_list[n-i]-A229037_list[n-2*i]) i += 1 while j in b: b.remove(j) j += 1 A229037_list.append(j) if j == 1: A236246_list.append(n+1) # Chai Wah Wu, Dec 25 2014
Comments