OFFSET
1,2
COMMENTS
Let S be the set generated by these rules: (1) if m and n are in S and m<n, then floor(mr+nr) is in S; (2) two or more specific numbers are in S. The floor-sum sequence determined by (1) and (2) results by arranging the elements of S in strictly increasing order.
LINKS
Iain Fox, Table of n, a(n) for n = 1..3000
EXAMPLE
a(3)=floor(r+3r)=6.
PROG
QBasic: r=(1+5^(1/2))/2: s(1)=1: s(2)=3: s(5)=6
For h=2 to 200: c(h)=h+c(h-1): next h
For h=1 to 100: c=c(h): d=0
For i=1 to h+1: d=d+1: s(c+d)=int(s(i)+s(h+2)*r)
Next i
Next h
For i=1 to 1000: for j=i+1 to 1001
if s(i)>=s(j) then swap s(i), s(j)
next j, i
For i=1 to 120: if s(i+1)<>s(i) then print s(i);
next i
(PARI) lista(nn) = my(S=[1, 3], r=(1+sqrt(5))/2, new, k); while(1, new=[]; for(m=1, #S, for(n=m+1, #S, k=floor(r*(S[m]+S[n])); if(k<=nn, new=setunion(new, [k])))); if(S==setunion(S, new), return(S)); S=setunion(S, new)) \\ Iain Fox, Apr 25 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Nov 27 2010
EXTENSIONS
139 (generated by m=22, n=64) added by R. J. Mathar, Nov 28 2010
STATUS
approved