OFFSET
0,6
COMMENTS
Also: a(0) = a(1) = 0, and thereafter, a(n) = the largest k such that A055938(k) <= n.
Conjecture: partial sums of A308187 (i.e, A308187 is the characteristic function of A055938). - Sean A. Irvine, Jul 16 2022
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..8191
FORMULA
PROG
(Scheme, with memoizing definec-macro from Antti Karttunen's IntSeq-library)
;; Alternatively, based on A046699, with its October 2012 starting offset:
(Python)
from sympy import factorial
def a046699(n):
if n<3: return 1
s=1
while factorial(2*s)%(2**(n - 1)): s+=1
return s
def a(n): return n - (a046699(n + 2) - 1)
print([a(n) for n in range(101)]) # Indranil Ghosh, Jun 11 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Dec 18 2013
STATUS
approved