A373218 Cubes equal to the sum of a factorial number and a square.
1, 27, 729, 46656
Offset: 1
Examples
1 = 1! + 0^2. 27 = 2! + 5^2. 729 = 6! + 3^2. 46656 = 7! + 204^2.
Programs
-
PARI
isok(k) = my(c=k^3, i=1, p=1); while (1, if (issquare(c-p), return(1)); i++; p *=i; if (p> c, return(0));); for (n=1, 50, if (isok(n), print1(n^3, ", "))); \\ Michel Marcus, Jun 06 2024
Comments