A069557 Squares in which the k-th significant digit either divides k or is a multiple of k. Is 1 only in case k has no other single-digit divisor.
1, 4, 9, 25, 49, 64, 81, 324, 361, 625, 961, 4624, 8649, 7354944
Offset: 1
Examples
8649 is a member in which the fourth digit is 8, a multiple of 4, the third one is 6, a multiple of 3, the second one is 4, a multiple of 2 and the least significant digit is 9.
Links
- David A. Corneth, PARI program
Programs
-
Mathematica
okQ[n_]:=Module[{idn=IntegerDigits[n]}, Count[idn,0]==0 && And@@Divisible[idn,Range[Length[idn],1,-1]]]; Select[Range[500]^2, okQ] (* Harvey P. Dale, Dec 20 2010 *)
-
PARI
\\ See PARI link
Extensions
More terms from Sascha Kurz, Mar 23 2002
Offset corrected and a(14) from Sean A. Irvine, May 04 2024
Comments