cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-1 of 1 results.

A249853 Numbers whose cubes become squares if one of their digits is deleted.

Original entry on oeis.org

4, 5, 6, 10, 20, 21, 25, 40, 44, 64, 90, 100, 129, 160, 200, 250, 360, 400, 490, 500, 600, 640, 810, 1000, 1210, 1440, 1690, 1960, 2000, 2025, 2100, 2250, 2500, 2560, 2890, 3240, 3610, 4000, 4400, 4410, 4840, 5025, 5290, 5760, 6250, 6400, 6760, 7290, 7840, 8410
Offset: 1

Views

Author

Paolo P. Lava, Nov 07 2014

Keywords

Comments

A245096 gives the numbers whose squares become cubes if one of their digit is deleted.
Numbers with single-digit cubes are not included. - Davin Park, Dec 30 2016

Examples

			21^3 = 9261 and sqrt(961) = 31.
44^3 = 85184 and sqrt(5184) = 72.
45625^3 = 94974853515625 and sqrt(9474853515625) = 3078125.
		

Crossrefs

Programs

  • Maple
    with(numtheory): P:=proc(q) local a,k,n;
    for n from 1 to q do a:=n^3; for k from 1 to ilog10(a) do
    if type(sqrt(trunc(a/10^(k+1))*10^k+(a mod 10^k)),integer)
    then print(n); break; fi; od; od; end: P(10^9);
  • Mathematica
    f[n_] := !MissingQ@SelectFirst[Delete[IntegerDigits[n^3], #] & /@ Range[IntegerLength[n^3]], IntegerQ@Sqrt@FromDigits@# &];
    Select[Range[4, 1000], f] (* Davin Park, Dec 30 2016 *)
Showing 1-1 of 1 results.