A385614 Numbers of the form x^x + y^y, 1 < x < y.
31, 260, 283, 3129, 3152, 3381, 46660, 46683, 46912, 49781, 823547, 823570, 823799, 826668, 870199, 16777220, 16777243, 16777472, 16780341, 16823872, 17600759, 387420493, 387420516, 387420745, 387423614, 387467145, 388244032, 404197705, 10000000004
Offset: 1
Examples
31 is in the sequence because 31 = 2^2 + 3^3.
Links
- Sean A. Irvine, Table of n, a(n) for n = 1..1000
Programs
-
PARI
a(n) = my(r,s=sqrtint((n-1)<<1,&r), x=2 + if(r
>1, y=3 + s-(rKevin Ryde, Jul 06 2025 -
Python
from math import isqrt, comb def A385614(n): y = (m:=isqrt(k:=n<<1))+(k>m*(m+1))+2 x = n-comb(y-2,2)+1 return x**x+y**y # Chai Wah Wu, Jul 07 2025
Comments