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!)
A344487 a(n) is the least k such that n is divisible by the sum of digits of k and k is divisible by the sum of digits of n; a(n) = -1 if no such k exists. 2
1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 10, 3, 76, 10, 12, 35, 296, 9, 10, 2, 3, 20, 10, 6, 14, 184, 9, 10, 20999, 3, 100, 10, 12, 98, 16, 9, 10, 11, 12, 4, 10, 6, 99799, 40, 9, 10, 2099999, 12, 52, 5, 12, 49, 1000, 9, 10, 11, 12, 1001, 7998998, 6, 7999999, 200, 9, 10 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Is a(n) > 0 for every n?
LINKS
EXAMPLE
For n = 15:
- the sum of digits of 15 is 6,
- so a(15) must be a multiple of 6,
- the sum of digits of 6 is 6, and 6 does not divide 15,
- the sum of digits of 12 is 3, and 3 divides 15,
- so a(15) = 12.
PROG
(PARI) See Links section.
CROSSREFS
Sequence in context: A355632 A179933 A259433 * A047813 A084051 A069652
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, May 21 2021
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 August 11 23:45 EDT 2024. Contains 375082 sequences. (Running on oeis4.)