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-3 of 3 results.

A066144 In base 2: n sets a new record for the number of 'Reverse and Add' steps needed to reach a palindrome starting with n.

Original entry on oeis.org

0, 2, 11, 19, 20, 74, 398, 779, 1062, 2329, 4189, 4280, 11278, 19962, 98318, 135137, 1051360, 1592930, 69226926, 4295054186, 4446008678, 17187271449, 18123849698
Offset: 1

Views

Author

Klaus Brockhaus, Dec 08 2001

Keywords

Comments

The analog of A065198 in base 2. Integers like 22, for which a palindrome is never reached (cf. A066059), are of course disregarded. A066145 gives the corresponding records.

Examples

			Starting with 74, 11 'Reverse and Add' steps are needed to reach a palindrome; starting with n < 74, less (at most 5) steps are needed.
		

Crossrefs

Record setting values in base b: A077406 (b=3), A075686 (b=4), A306599 (b=8), A065198 (b=10), A348571 (Zeckendorf).

Programs

  • Mathematica
    limit = 10^4; (* Assumes that there is no palindrome if none is found before "limit" iterations *)
    best = -1; Select[Range[0, 100000], (np = #; i = 0;
       While[np != IntegerReverse[np, 2] && i < limit,
        np = np + IntegerReverse[np, 2]; i++];
    If[i >= limit, False, If[i > best, best = i; True]]) &] (* Robert Price, Oct 14 2019 *)

Extensions

Offset corrected and a(19)-a(23) from A.H.M. Smeets, Apr 30 2022

A306596 Trajectory of n under the Reverse and Add! operation carried out in base 8 (presumably) does not reach a palindrome and (presumably) does not join the trajectory of any term m < n.

Original entry on oeis.org

1021, 3623, 4327, 4382, 4404, 4413, 4444, 4500, 4502, 4518, 4522, 4528, 4530, 4575, 4592, 4594, 5117, 5502, 5629, 6270, 7806, 8247, 8607, 12503, 12527, 12535, 16319, 16383, 16815, 20711, 20975, 24751, 25015, 28351, 28415, 28671, 28775, 28791, 33757, 33766, 34254, 34286, 34757, 34781, 35268, 35276
Offset: 1

Views

Author

A.H.M. Smeets, Feb 27 2019

Keywords

Comments

A number is considered here (presumably) a Lychrel number in base 8 if it does not reach a palindrome within 100 steps more than the actual record. For those record numbers of steps, see A306600; for the corresponding record-setting numbers, see A306599. Futhermore, a Lychrel number is considered not to reach the trajectory of any smaller Lychrel number if it does not reach a trajectory of a smaller Lychrel number within 100 steps more than the actual record. For those record number of steps see A306851, and its corresponding record setting numbers, see A306850.
For a(11) = 4522 we obtain a cyclic structure of the terms in its trajectory (starting at the 12th term in the trajectory) which can be represented by the context-free grammar with alphabet = {0,1,2,3,4,5,6,7} and production rules:
S -> S_a | S_b | S_c | S_d | S_e | S_f | S_g | S_h,
S_a -> 10 T_a 00, T_a -> 7 T_a 0 | 777670,
S_b -> 11 T_b 01, T_b -> 0 T_b 7 | 076667,
S_c -> 22 T_c 12, T_c -> 0 T_c 7 | 065557,
S_d -> 44 T_d 34, T_d -> 0 T_d 7 | 043337,
S_e -> 10 T_e 000, T_e -> 7 T_e 0 | 777670,
S_f -> 11 T_f 701, T_f -> 0 T_f 7 | 007567,
S_g -> 22 T_g 712, T_g -> 0 T_g 7 | 006357,
S_h -> 44 T_h 734, T_h -> 0 T_h 7 | 003737;
i.e., the cycle length is 8.
For all other terms up to and including a(649) = 527823, no such structure has been obtained.

Crossrefs

Base-8 analog of A075252 (base 2), A077405 (base 3), A075421 (base 4) and A063048 (base 10).

A306600 In base 8, records for the number of 'Reverse and Add' steps needed to reach a palindrome.

Original entry on oeis.org

0, 1, 2, 3, 6, 14, 17, 19, 21, 22, 23, 29, 30, 36, 46, 59, 60, 64, 67, 94, 95, 97, 120, 122, 133, 164
Offset: 0

Views

Author

A.H.M. Smeets, Feb 27 2019

Keywords

Comments

It is conjectured that if a Reverse and Add! trajectory reaches a palindrome, it will be reached in relatively few steps, or otherwise it will never reach a palindrome.
For all n, all numbers m < A306599(n) will reach a palindrome within a(n) Reverse and Add! steps, or otherwise it is conjectured never to reach a palindrome.

Crossrefs

Record setting numbers in A306599.
Base 10: A065198 and A065199.

Extensions

a(21)-a(25) from A.H.M. Smeets, May 30 2019
Showing 1-3 of 3 results.