[go: up one dir, main page]

login
A074102
Cubes from which deleting a suitable digit leaves a square.
1
1, 8, 64, 125, 216, 1000, 8000, 9261, 15625, 64000, 85184, 262144, 729000, 1000000, 2146689, 4096000, 8000000, 15625000, 46656000, 64000000, 117649000, 125000000, 216000000, 262144000, 531441000, 1000000000, 1771561000, 2985984000, 4826809000
OFFSET
1,2
LINKS
MATHEMATICA
drQ[n_] := Or @@ IntegerQ /@ Sqrt[Table[FromDigits[Drop[IntegerDigits[n], {k}]], {k, IntegerLength[n]}]]; Select[Range[1700]^3, drQ] (* Jayanta Basu, Jul 31 2013 *)
PROG
(PARI) \\ here isok(k) tests if removing one digit leaves a square.
isok(k)={my(d=digits(k)); for(i=1, #d, if(issquare(fromdigits(concat(d[1..i-1], d[i+1..#d]))), return(1))); 0}
lista(n)={my(L=List(), k=0); while(#L<n, k++; my(t=k^3); if(isok(t), listput(L, t))); Vec(L)} \\ Andrew Howroyd, Sep 19 2024
CROSSREFS
Sequence in context: A161146 A208380 A160428 * A118719 A134739 A116978
KEYWORD
nonn,base
AUTHOR
Amarnath Murthy, Aug 21 2002
EXTENSIONS
Corrected and extended by Robert Gerbicz, Aug 27 2002
Two more terms from Jayanta Basu, Jul 31 2013
Offset changed by Andrew Howroyd, Sep 19 2024
STATUS
approved