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

A059198 Ratios arising in A005184.

Original entry on oeis.org

10, 26, 14, 14, 44, 74, 158
Offset: 1

Views

Author

N. J. A. Sloane, Feb 28 2003

Keywords

Comments

Related to Collatz problem.

Examples

			a(1) = 310/31 = 10.
		

Crossrefs

Cf. A005184.

Extensions

a(7) from Donovan Johnson, Nov 28 2013

A068529 k values for self-contained numbers.

Original entry on oeis.org

9, 25, 32, 32, 23, 26, 33
Offset: 1

Views

Author

Naohiro Nomoto, Mar 22 2002

Keywords

References

  • R. K. Guy, Unsolved Problems in Number Theory, E16.

Crossrefs

A068530 n* values for self-contained numbers.

Original entry on oeis.org

5, 13, 7, 7, 11, 37, 79
Offset: 1

Views

Author

Naohiro Nomoto, Mar 22 2002

Keywords

References

  • R. K. Guy, Unsolved Problems in Number Theory, E16.

Crossrefs

A303698 Numbers k whose trajectory in the Collatz (or '3x+1') problem includes another multiple of k.

Original entry on oeis.org

31, 62, 83, 166, 293, 347, 586, 671, 694, 1342, 2684, 19151, 38302, 2025797, 4051594
Offset: 1

Views

Author

Jon E. Schoenfield, Apr 28 2018

Keywords

Comments

If a term k is even, then k/2 is also in the sequence.
For each odd term k among the first 15 terms, 2*k is also a term. Does the sequence include any odd terms k for which 2*k is not also in the sequence?
If it exists, a(16) > 1.5*10^11. - Giovanni Resta, May 04 2018

Examples

			The Collatz trajectory of 31 begins 31 -> 94 -> 47 -> 142 -> 71 -> 214 -> 107 -> 322 -> 161 -> 484 -> 242 -> 121 -> 364 -> 182 -> 91 -> 274 -> 137 -> 412 -> 206 -> 103 -> 310 -> 155 -> 466 -> ... which contains 310 and 155, both of which are multiples of 31, so 31 is in the sequence.
Other than its initial value, the trajectory of 62 is the same as that of 31, so it also includes 310, which is a multiple of 62, so 62 is in the sequence.
The trajectory of 671 includes 29524 = 671 * 11 * 2^2, so the sequence includes 671, 671*2 = 1342, and 671*4 = 2684.
		

Crossrefs

Programs

  • Magma
    a:=[]; for k in [2..40000] do t:=k; while t gt 1 do if IsEven(t) then t:=t div 2; else t:=3*t+1; end if; if IsDivisibleBy(t,k) then a[#a+1]:=k; break; end if; end while; end for; a; // Jon E. Schoenfield, Apr 30 2018
  • Maple
    T:= proc(n) option remember; `if`(n=1, 1,
          [n, T(`if`(n::even, n/2, 3*n+1))][])
        end:
    q:= n-> ormap(x-> x>n and irem(x, n)=0, [T(n)]):
    select(q, [$1..40000])[];  # Alois P. Heinz, Aug 04 2025
  • Mathematica
    traj[1]:={1};
    traj[n_]:=traj[n]=If[EvenQ[n]&&n>0,{n}~Join~traj[n/2],{n}~Join~traj[3*n+1]];
    fQ[n_]:=Select[traj[n],IntegerQ[#/n]&&#/n>1&,1]!={};
    Select[Range[20000],fQ[#]&] (* Ivan N. Ianakiev, Apr 30 2018 *)
Showing 1-4 of 4 results.