proposed
approved
proposed
approved
editing
proposed
Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/PairingFunction.html">Pairing Function</a>
Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/PairingFunction.html">Pairing Function</a>
proposed
editing
editing
proposed
Indranil Ghosh, <a href="/A286464/a286464.txt">Python program to generate the sequence</a>
approved
editing
proposed
approved
editing
proposed
Antti Karttunen, <a href="/A286464/b286464.txt">Table of n, a(n) for n = 1..10000</a>
(PARI)
A005940(n) = { my(p=2, t=1); n--; until(!n\=2, if((n%2), (t*=p), p=nextprime(p+1))); t }; \\ Modified from code of M. F. Hasler
A051064(n) = if(n<1, 0, 1+valuation(n, 3));
A046523(n) = { my(f=vecsort(factor(n)[, 2], , 4), p); prod(i=1, #f, (p=nextprime(p+1))^f[i]); }; \\ This function from Charles R Greathouse IV, Aug 17 2011
A278222(n) = A046523(A005940(1+n));
A286464(n) = (1/2)*(2 + ((A051064(n)+A278222(n))^2) - A051064(n) - 3*A278222(n))
for(n=1, 10000, write("b286464.txt", n, " ", A286464(n)));