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 17 results. Next

A072142 Numbers n such that 14 applications of 'Reverse and Subtract' lead to n, whereas fewer than 14 applications do not lead to n.

Original entry on oeis.org

11436678, 13973058, 19582398, 23981958, 30581397, 32662377, 33218856, 42464466, 44664246, 48737106, 61936974, 69746193, 71064873, 76226733
Offset: 1

Views

Author

Klaus Brockhaus, Jun 24 2002

Keywords

Comments

There are 14 eight-digit terms in the sequence. Further terms are obtained (a) by inserting at the center of these terms either any number of 9's (for 11436678, 32662377, 33218856, 76226733) or any number of 0's (for the other ten terms) and (b) by concatenating a term any number of times with itself and inserting an equal number of 0's at all junctures. Method (b) may be applied recursively to all terms. - Revised thanks to a comment from Hans Havermann, Jan 20 2004.

Examples

			11436678 -> 76226733 -> 42464466 -> 23981958 -> 61936974 -> 13973058 -> 71064873 -> 33218856 -> 32662377 -> 44664246 -> 19582398 -> 69746193 -> 30581397 -> 48737106 -> 11436678.
		

Crossrefs

Formula

n = f^14(n), n <> f^k(n) for k < 14, where f: x -> |x - reverse(x)|.

A072143 Numbers n such that 22 applications of 'Reverse and Subtract' lead to n, whereas fewer than 22 applications do not lead to n.

Original entry on oeis.org

108811891188, 115521884478, 117611882388, 125520874479, 177781822218, 215511784488, 242351757648, 248841751158, 278882721117, 428823571176, 432244567755, 442243557756, 455663544336, 602315397684, 604405395594
Offset: 1

Views

Author

Klaus Brockhaus, Jun 24 2002

Keywords

Comments

There are 22 twelve-digit terms in the sequence. Further terms are obtained (a) by inserting at the center of these terms any number of 9's and (b) by concatenating a term any number of times with itself and inserting an equal number of 0's at all junctures. Method (b) may be applied recursively to all terms. - Revised thanks to a comment from Hans Havermann, Jan 27 2004
All terms are divisible by 10999989. - Hugo Pfoertner, Sep 23 2020

Examples

			108811891188 -> 772386227613 -> 455663544336 -> 177781822218 -> 634446365553 -> 278882721117 -> 432244567755 -> 125520874479 -> 848957151042 -> 608805391194 -> 117611882388 -> 765676234323 -> 442243557756 -> 215511784488 -> 668975331024 -> 248841751158 -> 602315397684 -> 115521884478 -> 758966241033 -> 428823571176 -> 242351757648 -> 604405395594 -> 108811891188.
		

Crossrefs

Formula

n = f^22(n), n <> f^k(n) for k < 22, where f: x -> |x - reverse(x)|.

A072719 Numbers n such that 17 applications of 'Reverse and Subtract' lead to n, whereas fewer than 17 applications do not lead to n.

Original entry on oeis.org

1186781188132188, 1464465185355348, 2178772178212278, 2191191178088088, 2196702178032978, 2202202177977978, 2334334176656658, 3041250269587497, 4361064356389356, 4906609350933906, 6232232537677674, 6543356534566434
Offset: 1

Views

Author

Klaus Brockhaus, Jul 15 2002

Keywords

Comments

There are 17 sixteen-digit terms in the sequence. Further terms are obtained (a) by inserting at the center of these terms any number of 9's and (b) by concatenating a term any number of times with itself and inserting an equal number of 0's at all junctures. Method (b) may be applied recursively to all terms. - Revised thanks to a comment from Hans Havermann, Jan 27 2004.
This is a working sequence. It is neither by computation nor by proof guaranteed that there are no smaller or interleaved terms.
All terms are divisible by 1099999989. - Hugo Pfoertner, Sep 23 2020

Examples

			1186781188132188 -> 7625537623744623 -> 4361064356389356 -> 2178772178212278 -> 6543356534566434 -> 2196702178032978 -> 6595606534043934 -> 2202202177977978 -> 6595595534044044 -> 2191191178088088 -> 6617617533823824 -> 2334334176656658 ->  6232232537677674 -> 1464465185355348 -> 6971070630289293 -> 3041250269587497 -> 4906609350933906 -> 1186781188132188.
		

Crossrefs

Formula

n = f^17(n), n <> f^k(n) for k < 17, where f: x -> |x - reverse(x)|.

A072141 Numbers n such that two applications of 'Reverse and Subtract' lead to n, whereas one application does not lead to n.

Original entry on oeis.org

2178, 6534, 21978, 65934, 219978, 659934, 2199978, 6599934, 21782178, 21999978, 65346534, 65999934, 217802178, 219999978, 653406534, 659999934, 2178002178, 2197821978, 2199999978, 6534006534, 6593465934, 6599999934
Offset: 1

Views

Author

Klaus Brockhaus, Jun 24 2002

Keywords

Comments

There are two four-digit terms in the sequence. Further terms are obtained (a) by inserting at the center of these terms any number of 9's and (b) by concatenating a term any number of times with itself and inserting an equal number of 0's at all junctures. Method (b) may be applied recursively to all terms. - Revised thanks to a comment from Hans Havermann, Jan 27 2004.
Solutions to x = f^k(x), x <> f^j(x) for j < k, where f: n -> |n - reverse(n)|, for period lengths k <= 22 are given by:
.k..smallest.solution..smallest.n.with.period.k..sequence
.1..................0.........................0.......---
.2...............2178......................1012..(this one)
14...........11436678..................10001145...A072142
22.......108811891188..............100000114412...A072143
12.......118722683079..............100010505595...A072718
17...1186781188132188..........1000000011011012...A072719
I still have no answer to the question if there exist solutions for other values of k. Random tests for larger n (up to 50 digits) have shown that periods 1 and 2 are very frequent (> 90 %), period 14 is not unusual (7 to 8 %), periods 22, 12 and 17 are very rare and other periods did not appear.
I conjecture that for some k there are no solutions, while in other cases the minimal solutions will have 20, 24, 28, ... digits (which however are very hard to find).

Examples

			6534 -> |6534 - 4356| = 2178 -> |2178 - 8712| = 6534.
		

Crossrefs

Formula

n = f(f(n)), n <> f(n), where f: x -> |x - reverse(x)|.

Extensions

More terms from Ray Chandler, Oct 09 2017

A215669 Number of decimal digits of the smallest solution for the reverse-and-subtract problem for cycle length n.

Original entry on oeis.org

0, 4, 0, 18, 32, 0, 42, 44, 48, 24, 42, 12, 40, 8, 50, 368, 16, 100, 410, 118, 0, 12, 442, 584, 546, 1104, 482, 148, 2786, 536, 398
Offset: 1

Views

Author

Thorsten Ehlers, Aug 20 2012

Keywords

Comments

Solution x for a given cycle length n for the reverse-and-subtract problem is defined as x = f^n(x), x <> f^j(x) for j < n, where f: k -> |k - reverse(k)|. For some cycle lengths (at least for 1, 3, 6 and 21) no solutions exist, these are marked as 0 in above sequence.
Zero cannot be considered a solution for cycle length 1 as there are nontrivial solutions for other numeral systems, such as 13 (one-three) in base 5 numeral system.
This is an excerpt which shows the smallest solutions with up to 50 digits only:
.n..#digits.....................................smallest.solution......ref
.2........4..................................................2178..A072141
.4.......18....................................169140971830859028..A292634
.5.......32......................10591266563195008940873343680499..A292635
.7.......42............142710354353443018141857289645646556981858..A292856
.8.......44..........16914079504181797053273763831171860502859028..A292857
.9.......48......111603518721165960373027269626940447783074704878..A292858
10.......24..............................101451293600894707746789..A292859
11.......42............166425621223026859056339052269787863565428..A292846
12.......12..........................................118722683079..A072718
13.......40..............1195005230033599502088049947699664004979..A292992
14........8..............................................11436678..A072142
15.......50....10695314508256806604321090888649339244708568530399..A292993
17.......16......................................1186781188132188..A072719
22.......12..........................................108811891188..A072143
Solutions for all cycle lengths up to 31 can be found below in the links section. Remember that a zero means there exists no solution for this specific cycle length.
There are two ways to find such solutions, first you can search in a given range of numbers e.g. from 10000000 to 99999999 and apply reverse-and-subtract to each number until you fall below the smallest number in this range (here: 10000000) or you find a cycle. Obviously, this works well only on small numbers up to 18-20 digits.
The second way is to construct a cycle with a given length n from the outside in until the innermost 2 digits of each number match the conditions for a valid cycle. This way it is possible to get the above results within seconds up to some hours depending on the specific cycle length even on an outdated PC.

Examples

			a(4) = 169140971830859028 as the smallest cycle with length 4 is 169140971830859028 -> 651817066348182933 -> 312535222687464777 -> 464929563535070436 ( -> 169140971830859028 ).
		

Crossrefs

Extensions

Added a reference, formatted and added one more example in comments. - Thorsten Ehlers, Oct 06 2012
Sequences added to comments and crossrefs by Ray Chandler, Sep 27 2017

A292846 Numbers k such that 11 iterations of 'Reverse and Subtract' lead to k, whereas fewer than 11 iterations do not lead to k.

Original entry on oeis.org

166425621223026859056339052269787863565428, 192910929628537040766341860254183960991698, 307567270506730945853551459962385036145286, 311906350108036145286307567270199935391877
Offset: 1

Views

Author

Meritxell Vila Miñana, Sep 24 2017

Keywords

Comments

There are 11 forty-two-digit terms in the sequence. Further terms are obtained (a) by inserting at the center of these terms either any number of 0's (for 166425621223026859056339052269787863565428, 311906350108036145286307567270199935391877, 466287189883036620417374974360601118217236, 658139747564935391877311906350534262959233, 703288139752915027377325180481642968027593) or any number of 9's (for the other six terms) and (b) by concatenating a term any number of times with itself and inserting an equal number of 0's at all junctures. Method (b) may be applied recursively to all terms. - Clarified by Ray Chandler, Oct 14 2017.

Examples

			166425621223026859056339052269787863565428 -> 658139747564935391877311906350534262959233 -> 325180485129881782763533712811068515027377 -> 448540030730236434571833574377853069054146 -> 192910929628537040766341860254183960991698 -> 703288139752915027377325180481642968027593 -> 307567270506730945853551459962385036145286 -> 374974360076539008301807089075220036620417 -> 339052269946031972406296711860450026859056 -> 311906350108036145286307567270199935391877 -> 466287189883036620417374974360601118217236 -> 166425621223026859056339052269787863565428.
		

Crossrefs

Formula

n = f^11(n), n <> f^k(n) for k < 11, where f: x -> |x - reverse(x)|.

Extensions

Terms corrected by Ray Chandler, Sep 27 2017

A292856 Numbers k such that 7 applications of 'Reverse and Subtract' lead to k, whereas fewer than 7 applications do not lead to k.

Original entry on oeis.org

142710354353443018141857289645646556981858, 236547461211163745741763452538788836254258, 331948602685207939133668051397314792060866, 336111694728585211732663888305271414788267
Offset: 1

Views

Author

Meritxell Vila Miñana, Sep 25 2017

Keywords

Comments

There are 7 forty-two-digit terms in the sequence. Terms of derived sequences can be obtained either by inserting at the center of their digits any number of 9's or by concatenating a term any number of times with itself and inserting an equal number of 0's at all junctures.

Examples

			142710354353443018141857289645646556981858 -> 715479301293103964616284520698706896035383 -> 331948602685207939133668051397314792060866 -> 336111694728585211732663888305271414788267 -> 426775719443918676633573224280556081323366 -> 236547461211163745741763452538788836254258 -> 615905177676671508625384094822323328491374 -> 142710354353443018141857289645646556981858
		

Crossrefs

Formula

n = f^7(n), n <> f^k(n) for k < 7, where f: x -> |x - reverse(x)|.

Extensions

Terms ordered by Ray Chandler, Sep 27 2017

A292857 Numbers k such that 8 applications of 'Reverse and Subtract' lead to k, whereas fewer than 8 applications do not lead to k.

Original entry on oeis.org

16914079504181797053273763831171860502859028, 16914099886383117186009041817970531210859028, 31253512653248719266062943707325665377464777, 31253591994370732566027032487192660079464777
Offset: 1

Views

Author

Meritxell Vila Miñana, Sep 25 2017

Keywords

Comments

There are 8 forty-four-digit terms in the sequence. Further terms are obtained (a) by inserting at the center of these terms either any number of 0's (for 16914079504181797053273763831171860502859028, 46492964703403651468863122584458570244070436, 65181741002635316783463471248546280094182933) or any number of 9's (for the other five terms) and (b) by concatenating a term any number of times with itself and inserting an equal number of 0's at all junctures. Method (b) may be applied recursively to all terms. - Clarified by Ray Chandler, Oct 14 2017.

Examples

			16914079504181797053273763831171860502859028 -> 65181741002635316783463471248546280094182933 -> 31253591994370732566027032487192660079464777 -> 46492905012258445857045034036514689840070436 -> 16914099886383117186009041817970531210859028 -> 65181701327124854628081026353167837688182933 -> 31253512653248719266062943707325665377464777 -> 46492964703403651468863122584458570244070436 -> 16914079504181797053273763831171860502859028
		

Crossrefs

Formula

n = f^8(n), n <> f^k(n) for k < 8, where f: x -> |x - reverse(x)|.

Extensions

Terms ordered by Ray Chandler, Sep 27 2017

A292858 Numbers k such that 9 applications of 'Reverse and Subtract' lead to k, whereas fewer than 9 applications do not lead to k.

Original entry on oeis.org

111603518721165960373027269626940447783074704878, 176512193475025275151977319848516480415708873428, 230594281653466673786238177213613424643828503868, 305623327188018690392981819607012089228265673497
Offset: 1

Views

Author

Meritxell Vila Miñana, Sep 25 2017

Keywords

Comments

There are 9 forty-eight-digit terms in the sequence. Further terms are obtained (a) by inserting at the center of these terms either any number of 0's (for 111603518721165960373027269626940447783074704878, 176512193475025275151977319848516480415708873428, 637711546692957642526533655473763239712353991164, 647866614039059340696936459303056040158682342243, 766803951666578089253935450746129113344740601233) or any number of 9's (for the other four terms) and (b) by concatenating a term any number of times with itself and inserting an equal number of 0's at all junctures. Method (b) may be applied recursively to all terms. - Clarified by Ray Chandler, Oct 14 2017.

Examples

			111603518721165960373027269626940447783074704878 -> 766803951666578089253935450746129113344740601233 -> 434697904223266167606880911393148237678581292566 -> 230594281653466673786238177213613424643828503868 -> 637711546692957642526533655473763239712353991164 -> 176512193475025275151977319848516480415708873428 -> 647866614039059340696936459303056040158682342243 -> 305623327188018690392981819607012089228265673497 -> 488753235634961520313936369686084721653457653006 -> 111603518721165960373027269626940447783074704878
		

Crossrefs

Formula

n = f^9(n), n <> f^k(n) for k < 9, where f: x -> |x - reverse(x)|.

Extensions

Terms ordered by Ray Chandler, Sep 27 2017

A292859 Numbers k such that 10 applications of 'Reverse and Subtract' lead to k, whereas fewer than 10 applications do not lead to k.

Original entry on oeis.org

101451293600894707746789, 105292253210898548706399, 245973964471725640521348, 274359478651754026035528, 551171141805402848917944, 597151082055448828858194
Offset: 1

Views

Author

Meritxell Vila Miñana, Sep 25 2017

Keywords

Comments

There are 10 twenty-four-digit terms in the sequence. Terms of derived sequences can be obtained either by inserting at the center of their digits any number of 9's or by concatenating a term any number of times with itself and inserting an equal number of 0's at all junctures.

Examples

			105292253210898548706399 -> 888315592687113803586102 -> 686630284375327508072214 -> 274359478651754026035528 -> 551171141805402848917944 -> 101451293600894707746789 -> 886196413897111684407312 -> 672491927785313369715624 -> 245973964471725640521348 -> 597151082055448828858194 -> 105292253210898548706399
		

Crossrefs

Formula

n = f^10(n), n <> f^k(n) for k < 10, where f: x -> |x - reverse(x)|.

Extensions

Terms ordered by Ray Chandler, Sep 27 2017
Showing 1-10 of 17 results. Next