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.

Showing 1-10 of 21 results. Next

A329623 The absolute value of the difference between n and A053392(n), the concatenation of the sums of every pair of consecutive digits of n.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 63
Offset: 0

Views

Author

Scott R. Shannon, Nov 19 2019

Keywords

Comments

As A040115 forms the basis of an iterative sequence leading to A329200 and A329201, this sequence forms the basis of a similar sequence A329624. As the concatenation of the digit sum can lead to a value larger than the original term we must take the absolute value of the difference to ensure subsequent terms are always positive. The largest value in the first 10000 terms is a(9991) = 171819.

Examples

			a(9) = 9 as A053392(9) = 0 and | 9 - 0 | = 9.
a(10) = 10 as A053392(10) = 1 and | 10 - 1 | = 9.
a(100) = 90 as A053392(100) = 10 and | 100 - 10 | = 90.
a(119) = 91 as A053392(119) = 210 and | 119 - 210 | = 91.
		

Crossrefs

Programs

A328975 Numbers whose trajectory under repeated application of the map in A053392 increases without limit.

Original entry on oeis.org

1496, 1497, 1498, 1499, 1587, 1588, 1589, 1691, 1692, 1693, 1694, 1695, 1696, 1697, 1698, 1699, 1719, 1728, 1729, 1783, 1784, 1785, 1786, 1787, 1788, 1789, 1791, 1792, 1793, 1794, 1795, 1796, 1797, 1798, 1799, 1819, 1867, 1868, 1869, 1874, 1875, 1876, 1877, 1878, 1879, 1880, 1881, 1882, 1883, 1884, 1885
Offset: 1

Views

Author

N. J. A. Sloane, Nov 02 2019

Keywords

Comments

Computed by Hans Havermann, Nov 01 2019.
There is a simple technique, due to Hans Havermann, that proves that many terms that in this sequence blow up: find a term in the trajectory that has an internal substring of three 9's. See A328974 for the case 1496.
The same reasoning shows that almost all numbers belong to the sequence.
From Scott R. Shannon, Nov 23 2019: (Start)
Although many of the numbers in this sequence eventually reach a term that contains three 9's, some do not. The first such example is 4949 which leads to 44444 after two steps, and starts a sequence of values that leads back to a much larger all-4's number every nine steps. No 9's appear in any of the intermediate values. Similar series found which lead to limitless loops are values with all 4's with a final 5, or all 3's with a final digit of 1 to 6. Of the first 33909 starting values that increase without limit 209 lead into one of these non-9 loops. (End)
From Scott R. Shannon, Nov 24 2019: (Start)
One can show that strings of repeated digits longer than a certain length will increase without limit by calculating the number of digits when a new value containing only the same digit appears again in the iterative sequence. Below shows the details of this for digits 1 to 9. The number of cycles is the number of iterations of A053392 required before a new value containing only the starting digit is seen. The minimum starting value is the smallest same-digit number such that subsequent iterations will produce another value with only the same digit of equal or longer length. The number of digits in the subsequence reoccurrence shows the number of digits in this value given the starting value has n digits. All sufficiently long single-digit numbers, with digits 1 to 8, increase 8-fold in length, minus a constant, after 9 iterations.
.
digit | # of cycles | min start value | # digits in reoccurrence
1 | 9 | 1111111 | 8*n - 45
2 | 9 | 222222 | 8*n - 38
3 | 3 | 33333 | 2*n - 5
4 | 9 | 44444 | 8*n - 31
5 | 9 | 55555 | 8*n - 33
6 | 3 | 6666 | 2*n - 4
7 | 9 | 77777 | 8*n - 27
8 | 9 | 8888 | 8*n - 28
9 | 2 | 999 | 2*n - 3
(End)

Crossrefs

A053393 Periodic points under the map A053392 that adds consecutive pairs of digits and concatenates them.

Original entry on oeis.org

0, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1810, 1811, 1812, 1813, 1814, 1815, 1816, 1817, 1818, 6664, 6665, 6666, 6667, 6668, 6669, 33331, 33332, 33333, 33334, 33335, 33336, 121210, 121211, 121212, 121213, 121214, 121215
Offset: 0

Views

Author

Erich Friedman, Jan 07 2000

Keywords

Comments

Apart from 0, the terms listed so far are all of period 2 or 3. Are there longer periods?

Examples

			f(84290) = 126119 since 8+4 = 12, 4+2 = 6, 2+9 = 11, 9+0 = 9.
		

Crossrefs

Cf. A053392.

Programs

  • Python
    def f(n):
      if 0 <= n <= 9: return 0
      d = str(n)
      return int("".join(str(int(di)+int(dj)) for di, dj in zip(d[:-1], d[1:])))
    def aupto(limit):
      n, DIVERGENCELIMIT = 0, 10**100
      while n <= limit:
        m, orbit = n, []
        while m <= DIVERGENCELIMIT and m not in orbit: orbit.append(m); m = f(m)
        if m in orbit and m == orbit[0]: print(n, end=", ")
        n += 1
    aupto(130000) # Michael S. Branicky, Mar 24 2021

Extensions

More terms from Naohiro Nomoto, Apr 06 2001
0 added by N. J. A. Sloane, Nov 01 2019

A328974 Trajectory of 1496 under repeated application of the map defined in A053392.

Original entry on oeis.org

1496, 51315, 6446, 10810, 1891, 91710, 10881, 18169, 99715, 181686, 9971414, 18168555, 99714131010, 181685544111, 99714131098522, 18168554419171374, 99714131098510108841011, 1816855441917136111816125112, 99714131098510108849722997737623, 1816855441917136111816121316941118161410101385
Offset: 1

Views

Author

N. J. A. Sloane, Nov 01 2019

Keywords

Comments

1496 is the smallest number whose trajectory under A053392 increases without limit.
More terms than usual are shown in order to display the onset of exponential growth.
Proof that this grows without limit, from Hans Havermann, Nov 01 2019: (Start)
One way to prove that the trajectory of a number under repeated application of the map defined in A053392 increases without limit is to show that there exists a term containing a non-final substring of three adjacent 9's.
If such a substring in term n is followed by a 0, it will grow to a non-final substring of three adjacent 9's followed by a 1 in term n+2: *9990* --> *18189* --> *99917*
If such a substring in term n is followed by a digit d that is neither 0 nor 9, it will grow to a non-final substring of four adjacent 9's in term n+2: *999d* --> *18181(d-1)* --> *9999d*
If such a substring in term n is followed by another 9, then it is a substring of k 9's for k >= 4, which will grow to a substring of (2k-3) 9's in term n+2: *[9]^d* --> *[18]^(d-1)* --> *[9]^(2d-3)*
Putting those together, such a substring in term n will grow to four adjacent 9's by term n+4; to five adjacent 9's by term n+6; to seven adjacent 9's by term n+8; ... to 2^k+3 adjacent 9's (see A062709) by term n+4+2k, regardless of what happens in the rest of the number.
In the present sequence a(41) contains two non-final substrings of three adjacent 9's. QED (End)
[Argument corrected and completed by David J. Seal, Nov 05 2019.]

Crossrefs

Cf. A053392.

Programs

  • Mathematica
    NestList[FromDigits[Flatten[{IntegerDigits[Total[Partition[IntegerDigits[#], 2, 1], {2}]]}]] &, 1496, 20] (* Paolo Xausa, Jan 10 2025 *)

A060630 a(n) gives smallest number requiring n iterations of the map i -> A053392(i) to reach zero.

Original entry on oeis.org

0, 1, 10, 19, 109, 149, 197, 399, 694, 796, 893, 897, 1167, 1579, 1596, 1667, 1790, 1777, 2859, 1779, 1778, 1873, 3679, 5926, 11289, 9539, 13551, 4589, 5960, 12066, 12265, 19119, 10927, 12379, 11742, 65220, 34038, 40390, 1110025, 10100023
Offset: 0

Views

Author

Jason Earls, Apr 14 2001

Keywords

Comments

24th and 26th terms are unknown, but a(25)=9539, a(27)=4589 and a(28)=5960.

Examples

			a(5)=149 because 149 -(1)-> 513 -(2)-> 64 -(3)-> 10 -(4)-> 1 -(5)-> 0. a(7)=399 because 399 -(1)-> 1218 -(2)-> 339 -(3)-> 612 -(4)-> 73 -(5)-> 10 -(6)-> 1 -(7)-> 0.
		

Crossrefs

Cf. A053392.

Formula

a(n)=10^(n-2)+9, for n=2, 3, 4 and for n > 40.

Extensions

More terms from Berend Jan van der Zwaag, Jun 23 2001

A103117 Berend Jan van der Zwaag's conjectured complete list of numbers that start different "expanding periodic loops" under the mapping described in A053392 and A060630.

Original entry on oeis.org

3871, 7777, 9911, 9921, 9922, 9931, 9933, 9941, 9951, 9955, 9961, 9966, 9971, 9977, 9981, 9988, 9999, 66642, 66651, 66661, 66666, 66678, 66681, 66691
Offset: 1

Views

Author

N. J. A. Sloane, Sep 06 2008

Keywords

Comments

See link for the precise definition.

Crossrefs

Extensions

9966 inserted by Lars Blomberg, Aug 26 2011

A328680 The number of iterations before a repeated value appears when starting from n and performing the iterative cycle as described in the comments, which involves setting the next iterative number to either A053392 or A040115 depending on the current numbers' size relative to n.

Original entry on oeis.org

2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5
Offset: 1

Views

Author

Scott R. Shannon, Dec 03 2019

Keywords

Comments

This sequence is based on the following iterative cycle. Start with n, set m = A040115(n), the concatenation of the absolute values of differences between adjacent digits, and then repeat the following until the number m has been previously seen: if m is greater than n, let m = A040115(m), otherwise let m = A053392(m), the concatenation of the sums of pairs of adjacent digits.
For all starting values n the iteration eventually converges to 0 or else goes into a cycle of finite length. When the number m gets larger than the iteration's starting value n it will always have its magnitude decreased by the operation m = A040115(m), while m = A053392(m) can either increase or decrease its magnitude, depending on the digit values of m. This has the overall effect of never allowing the iterative values to increase without limit as is seen in the similar iterations A328975 and A329624.
All the values of A053393 are seen as repeating values in this sequence, although this sequence has significantly more; probably an infinite number, although this is unknown. The first nonzero repeating value is not seen until a(9090), which forms the two-member loop of 999 -> 1818 -> 999. The first starting value that leads to an m value greater than the initial starting value is a(10090), see examples below. A330159 lists the starting values which are also the first repeating value.
For the first 20 million terms the longest iterative sequence is seen for a(18505180) which takes 457 steps before reaching 0. See attached link. The longest found looping sequence is for a(14106482) which reaches 1040103 after 5 steps and then again after 116 steps, forming a loop of length 111. The largest number found which starts the repeating loop is for a(9265011) which reaches 1411131715 after 9 iterations and then again after 41 iterations.
From a(12) to a(99) the sequence repeats a pattern of ten 3's followed by a 2. After that, a(100) = 4 and the terms begin to show a slow average increase in value.

Examples

			a(10) = 3 as A040115(10) = 1, A053392(1) = 0, and A053392(0) = 0, taking three steps to repeat from 10.
a(1060) = 7 as A040115(1060) = 166, A053392(166) = 712, A053392(712) = 83, A053392(83) = 11, A053392(11) = 2, A053392(2) = 0, A053392(0) = 0, taking seven steps to repeat from 1060.
a(10090) = 11 as A040115(10090) = 1099, A053392(1099) = 1918, A053392(1918) = 10109, A040115(10109) = 1119, A053392(1119) = 2210, A053392(2210) = 431, A053392(431) = 74, A053392(74) = 11, A053392(11) = 2, A053392(2) = 0, A053392(0) = 0, taking eleven steps to repeat from 11090.
		

Crossrefs

A194429 Numbers n such that there is no i >= 0 for which A053392(i) = n.

Original entry on oeis.org

110, 120, 121, 130, 131, 132, 140, 141, 142, 143, 150, 151, 152, 153, 154, 160, 161, 162, 163, 164, 165, 170, 171, 172, 173, 174, 175, 176, 180, 181, 182, 183, 184, 185, 186, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 220, 230, 231, 240, 241, 242, 250, 251, 252, 253, 260, 261, 262, 263, 264, 270, 271, 272, 273, 274, 275, 280, 281
Offset: 1

Views

Author

N. J. A. Sloane, Aug 24 2011

Keywords

Comments

The Friedman web site quotes B. J. van der Zwaag as saying that the three-digit terms are those for which the middle digit is >= the sum of the other two digits.

Crossrefs

Cf. A053392.

A327709 The numbers n that are a multiple or divisor of A053392(n), the concatenation of the sum of the consecutive digits of n.

Original entry on oeis.org

10, 12, 18, 20, 21, 24, 27, 30, 36, 40, 42, 45, 48, 50, 54, 60, 63, 70, 72, 80, 81, 84, 90, 100, 105, 108, 182, 200, 236, 261, 300, 400, 405, 445, 455, 500, 600, 616, 700, 750, 800, 900, 1000, 1305, 1567, 2000, 3000, 4000
Offset: 1

Views

Author

Scott R. Shannon, Feb 24 2020

Keywords

Comments

As A053392(n) can be either larger or smaller than n this sequence lists n when it is either a multiple or a divisor of A053392(n). In the majority of terms n is a multiple of A053392(n); the first case where n is a divisor is a(27) = 182, where A053392(182) = 910.
All numbers of the form n = k*10^t, with k,t>=1 are in the sequence, as are numbers n = 75*10^t, with t>=1. Also present are numbers of the form n = 444...445 which have A053392 values like 888...889, for which n = 5*A053392(n). Similarly numbers of the form n = 444...455, which have A053392 values like 888...8910, for which A053392(n) = 2*n. For numbers up to 10^10 the largest term which is not one of these forms is a(120) = 654653884, which divides A053392(654653884) = 11910118111612.

Examples

			a(7) = 27 is a term as A053392(27) = 9, and 27 is a multiple of 9.
a(27) = 182 is a term as A053392(182) = 910, and 182 is a divisor of 910.
a(29) = 236 is a term as A053392(236) = 59, and 236 is a multiple of 59.
		

Crossrefs

Cf. A053392, A048378 (digit difference instead of sum).

A328973 Numbers k such that A053392(k) > k.

Original entry on oeis.org

119, 128, 129, 137, 138, 139, 146, 147, 148, 149, 155, 156, 157, 158, 159, 164, 165, 166, 167, 168, 169, 173, 174, 175, 176, 177, 178, 179, 182, 183, 184, 185, 186, 187, 188, 189, 191, 192, 193, 194, 195, 196, 197, 198, 199, 219, 228, 229, 237, 238, 239, 246
Offset: 1

Views

Author

N. J. A. Sloane, Nov 01 2019

Keywords

Crossrefs

Cf. A053392.
Showing 1-10 of 21 results. Next