OFFSET
1,3
LINKS
John Tyler Rascoe, Table of n, a(n) for n = 1..2048
PROG
(Python)
from itertools import count
def b(n, ak):
for x in count(0):
bx = bin(min(n, ak)-x)[2:]
if bx in bin(n)[2:] and bx in bin(ak)[2:]:
return(int(bx, 2)); break
def A175481_list(nmax):
A = [1]
for n in range(2, nmax+1):
A.append((sum(b(n-1, A[k-1]) for k in range(1, n))))
return(A) # John Tyler Rascoe, Dec 29 2023
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Leroy Quet, May 26 2010
EXTENSIONS
More terms from Sean A. Irvine, Mar 02 2011
STATUS
approved