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!)
A058901 Inconsummate numbers in base 5: no number is this multiple of the sum of its digits (in base 5). 3
16, 22, 28, 46, 56, 58, 68, 74, 76, 80, 106, 108, 110, 118, 128, 136, 138, 140, 146, 152, 168, 198, 202, 206, 208, 230, 249, 256, 258, 262, 263, 268, 274, 276, 278, 280, 284, 286, 288, 290, 292, 294, 296, 298, 302, 318, 323, 324, 326, 336, 338 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MAPLE
For Maple code see A058906.
MATHEMATICA
base=5; Do[k=n; While[Apply[Plus, IntegerDigits[k, base]] n!=k&&k<250n, k+=n]; If[k==250 n, Print[n]], {n, 1, 10^4}] (* Vincenzo Librandi, Nov 03 2016 *)
PROG
(Python)
from itertools import count, islice, combinations_with_replacement
from sympy.ntheory import digits
def A058901_gen(startvalue=1): # generator of terms >= startvalue
for n in count(max(startvalue, 1)):
for l in count(1):
if 4*l*n < 5**(l-1):
yield n
break
for d in combinations_with_replacement(range(5), l):
if (s:=sum(d)) > 0 and sorted(digits(s*n, 5)[1:]) == list(d):
break
else:
continue
break
A058901_list = list(islice(A058901_gen(), 20)) # Chai Wah Wu, May 10 2023
CROSSREFS
Sequence in context: A341169 A064804 A102944 * A059756 A242214 A242559
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Jan 09 2001
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 April 18 08:27 EDT 2024. Contains 371769 sequences. (Running on oeis4.)