OFFSET
1,2
COMMENTS
A permutation of the natural numbers. - Robert G. Wilson v, Jun 12 2014
In Pascal's triangle a(n) occurs the first time in row A265912(n). - Reinhard Zumkeller, Dec 18 2015
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
Dana G. Korssjoen, Biyao Li, Stefan Steinerberger, Raghavendra Tripathi, and Ruimin Zhang, Finding structure in sequences of real numbers via graph theory: a problem list, arXiv:2012.04625 [math.CO], 2020-2021.
F. Richman, Combinations and Permutations
MATHEMATICA
lst = {1}; t = Flatten[Table[Binomial[n, m], {n, 16}, {m, Floor[n/2]}]]; Do[ If[ !MemberQ[lst, t[[n]]], AppendTo[lst, t[[n]] ]], {n, Length@t}]; lst (* Robert G. Wilson v *)
DeleteDuplicates[Flatten[Table[Binomial[n, m], {n, 20}, {m, 0, Floor[n/2]}]]] (* Harvey P. Dale, Apr 08 2013 *)
PROG
(Haskell)
import Data.List (nub)
a014631 n = a014631_list !! (n-1)
a014631_list = 1 : (nub $ concatMap tail a034868_tabf)
-- Reinhard Zumkeller, Dec 19 2015
(Python)
from itertools import count, islice
def A014631_gen(): # generator of terms
s, c =(1, ), set()
for i in count(0):
for d in s:
if d not in c:
yield d
c.add(d)
s=(1, )+tuple(s[j]+s[j+1] for j in range(len(s)-1)) + ((s[-1]<<1, ) if i&1 else ())
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Erich Friedman
Offset changed by Reinhard Zumkeller, Dec 18 2015
STATUS
approved