The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A371338 Numbers k>0 such that k = |(product of nonzero digits of k^2) - (sum of digits of k^2)|. 0
161, 198, 1701, 604755, 629810, 4354506, 100018736, 411505847, 14869757951891, 2239397044538572646, 40766979086355529727820, 6289762487609138872319999999757 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Most often P-S is strictly positive but to always have an application of N* in N* we prefer to use |P-S| (cf. Clerc).
LINKS
René-Louis Clerc, Nombres S+P, maxSP, minSP et |P-S|, pp. 1-15, 2024.
EXAMPLE
1701^2 = 2893401, |(2*8*9*3*4*1) - (2+8+9+3+4+1)| = 1728 - 27 = 1701.
PROG
(PARI) SmP(k, r)=my(d=select(x->(x>0), digits(k^r))); abs(vecsum(d)- vecprod(d)) == k;
resuSmP(p, r)={for(k=1, 10^p, if(SmP(k, r)==1, print1(k, "; ")))}
CROSSREFS
Sequence in context: A249397 A025350 A025342 * A189639 A348426 A298615
KEYWORD
nonn,base,more
AUTHOR
René-Louis Clerc, Mar 19 2024
EXTENSIONS
a(9)-a(12) from Chai Wah Wu, Apr 20 2024
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 7 10:57 EDT 2024. Contains 373162 sequences. (Running on oeis4.)