OFFSET
1,3
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
FORMULA
PROG
(Scheme) (define (A286388 n) (if (= 1 n) 0 (* (/ 1 2) (+ (expt (+ (A032742 n) (A001511 (+ 1 n))) 2) (- (A032742 n)) (- (* 3 (A001511 (+ 1 n)))) 2))))
(Python)
from sympy import divisors
def T(n, m): return ((n + m)**2 - n - 3*m + 2)/2
def a001511(n): return bin(n)[2:][::-1].index("1") + 1
def a(n): return 0 if n==1 else T(divisors(n)[-2], a001511(n + 1)) # Indranil Ghosh, May 14 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, May 13 2017
STATUS
approved