|
|
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.
|
|
3
|
|
|
1, 4, 9, 25, 49, 64, 81, 324, 361, 625, 961, 4624, 8649, 7354944
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
If the smallest prime divisor of n is > 7 only in such case the n-th digit is 1.
The definition implies that no digit can be zero. - N. J. A. Sloane, May 05 2024
|
|
LINKS
|
|
|
EXAMPLE
|
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.
|
|
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 *)
|
|
PROG
|
(PARI) \\ See PARI link
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,hard,more,nonn,changed
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|