Skip to main content
Commonmark migration
Source Link

#It's all in the title...

It's all in the title...

Take as input a positive integer n>=12 and... do what the title says.

Yes, this is on OEIS [A187924][1]A187924.

Some test cases

12 -> 912  
13 -> 11713  
14 -> 6314  
15 -> 915  
16 -> 3616  
17 -> 15317  
18 -> 918  
19 -> 17119 
20 -> 9920  
40 -> 1999840   
100-> 99999999999100

This is . Shortest code in bytes wins! [1]: https://oeis.org/A187924

#It's all in the title...

Take as input a positive integer n>=12 and... do what the title says.

Yes, this is on OEIS [A187924][1].

Some test cases

12 -> 912  
13 -> 11713  
14 -> 6314  
15 -> 915  
16 -> 3616  
17 -> 15317  
18 -> 918  
19 -> 17119 
20 -> 9920  
40 -> 1999840   
100-> 99999999999100

This is . Shortest code in bytes wins! [1]: https://oeis.org/A187924

It's all in the title...

Take as input a positive integer n>=12 and... do what the title says.

Yes, this is on OEIS A187924.

Some test cases

12 -> 912  
13 -> 11713  
14 -> 6314  
15 -> 915  
16 -> 3616  
17 -> 15317  
18 -> 918  
19 -> 17119 
20 -> 9920  
40 -> 1999840   
100-> 99999999999100

This is . Shortest code in bytes wins!

Mod Moved Comments To Chat
Tweeted twitter.com/StackCodeGolf/status/935324856039673856
improved formatting
Source Link
user202729
  • 17.4k
  • 2
  • 37
  • 70

Find the smallest positive integer which ends in n,is is divisible by n and whose digits sum to n

#It's all in the title...

Take as input a positive integer n>=12 and... do what the title says.

Yes, this is on OEIS [A187924][1].

Some test cases

12 -> 912  
13 -> 11713  
14 -> 6314  
15 -> 915  
16 -> 3616  
17 -> 15317  
18 -> 918  
19 -> 17119 
20 -> 9920  
40 -> 1999840   
100-> 99999999999100

thisThis is .Shortest Shortest code in bytes wins! [1]: https://oeis.org/A187924

Find the smallest positive integer which ends in n,is divisible by n and whose digits sum to n

#It's all in the title...

Take as input a positive integer n>=12 and... do what the title says

Yes, this is on OEIS [A187924][1]

Some test cases

12 -> 912  
13 -> 11713  
14 -> 6314  
15 -> 915  
16 -> 3616  
17 -> 15317  
18 -> 918  
19 -> 17119 
20 -> 9920  
40 -> 1999840   
100-> 99999999999100

this is .Shortest code in bytes wins! [1]: https://oeis.org/A187924

Find the smallest positive integer which ends in n, is divisible by n and whose digits sum to n

#It's all in the title...

Take as input a positive integer n>=12 and... do what the title says.

Yes, this is on OEIS [A187924][1].

Some test cases

12 -> 912  
13 -> 11713  
14 -> 6314  
15 -> 915  
16 -> 3616  
17 -> 15317  
18 -> 918  
19 -> 17119 
20 -> 9920  
40 -> 1999840   
100-> 99999999999100

This is . Shortest code in bytes wins! [1]: https://oeis.org/A187924

Source Link
user72269
user72269

Find the smallest positive integer which ends in n,is divisible by n and whose digits sum to n

#It's all in the title...

Take as input a positive integer n>=12 and... do what the title says

Yes, this is on OEIS [A187924][1]

Some test cases

12 -> 912  
13 -> 11713  
14 -> 6314  
15 -> 915  
16 -> 3616  
17 -> 15317  
18 -> 918  
19 -> 17119 
20 -> 9920  
40 -> 1999840   
100-> 99999999999100

this is .Shortest code in bytes wins! [1]: https://oeis.org/A187924