OFFSET
1,2
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = 2*n*A000201(n) - n^2.
MATHEMATICA
Array[2 * # * Floor[# * GoldenRatio] - #^2 &, 100]
PROG
(Python)
from math import isqrt
def A371388(n): return n*((n+isqrt(5*n**2)&-2)-n) # Chai Wah Wu, Mar 21 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paolo Xausa, Mar 21 2024
STATUS
approved