OFFSET
1,1
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..10000
MATHEMATICA
PROG
(PARI)
A358510(i)=my(a=List(), pos=1, r); for(j=1, i, r=j<<2; listput(a, [pos+=2, pos+=r-1]); pos++; listput(a, vector(r, x, x+pos)); pos+=r); concat(Vec(a)); \\ i-th iteration adds 2+4*i terms
A358510(10)
(Python)
def A358510(i): # i-th iteration adds 2+4*i terms
a, pos = [], 2
for j in range(1, i + 1):
a.extend([pos := pos + 1, pos := pos + (j<<2) - 1])
a.extend(range(pos := pos + 2, pos := pos + (j<<2)))
return a
print(A358510(10))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paolo Xausa, Nov 20 2022
STATUS
approved