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