cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A352689 a(n) is the last term of the first run of A331786(n) consecutive numbers whose sum of digits (A007953) is not divisible by n.

Original entry on oeis.org

10, 2, 1002, 13, 14, 1005, 10000006, 8, 18, 1000018, 38, 10000000038, 1048, 1058, 10000068, 1000000000000078, 98, 198, 100000000198, 398, 100000000000000398, 100498, 100598, 100000000698, 100000000000000000000798, 998, 1998, 10000000000001998, 3998, 1000000000000000000003998
Offset: 2

Views

Author

Bernard Schott, Mar 28 2022

Keywords

Comments

A331786(n) is the number of consecutive integers in the largest such possible run.

Examples

			a(4) = 1002 because the A331786(4) = 6 consecutive numbers 997, 998, 999, 1000, 1001, 1002 have respectively sum of digits = 25, 26, 27, 1, 2, 3 and none is divisible by 4, and there is no smaller m < 1002 such that sum of digits of m-5, m-4, m-3, m2, m-1, m is not divisible by 4.
		

Crossrefs

Formula

a(n) = A352688(n) + A331786(n) - 1.

Extensions

More terms from Jinyuan Wang, Mar 28 2022