OFFSET
1,2
COMMENTS
LINKS
PROG
(PARI)
up_to = 25425; \\ = binomial(225+1, 2)
rgs_transform(invec) = { my(om = Map(), outvec = vector(length(invec)), u=1); for(i=1, length(invec), if(mapisdefined(om, invec[i]), my(pp = mapget(om, invec[i])); outvec[i] = outvec[pp] , mapput(om, invec[i], i); outvec[i] = u; u++ )); outvec; };
A001477pairton(a, b) = (((a+b)^2 + 3*a + b)/2);
A286153sq(n, k) = if(n>k, A001477pairton(bitxor(n, k), k), A001477pairton(n, bitxor(n, k)));
A286153list(up_to) = { my(v = vector(up_to), i=0); for(a=1, oo, for(col=1, a, i++; if(i > up_to, return(v)); v[i] = A286153sq(col, (a-(col-1))))); (v); };
v331305 = rgs_transform(A286153list(up_to));
A331305(n) = v331305[n]; \\ Antti Karttunen, Jan 19 2020
CROSSREFS
AUTHOR
Antti Karttunen, Jan 19 2020
STATUS
approved