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.

A057446 To get next term, multiply by 13, add 1 and discard any prime factors < 13.

This page as a plain text file.
%I A057446 #16 Feb 16 2025 08:32:43
%S A057446 73,19,31,101,73,19,31,101,73,19,31,101,73,19,31,101,73,19,31,101,73,
%T A057446 19,31,101,73,19,31,101,73,19,31,101,73,19,31,101,73,19,31,101,73,19,
%U A057446 31,101,73,19,31,101,73,19,31,101,73,19,31,101,73,19,31,101
%N A057446 To get next term, multiply by 13, add 1 and discard any prime factors < 13.
%C A057446 This is the '13x+1' map. The 'Px+1 map': if x is divisible by any prime < P then divide out these primes one at a time starting with the smallest; otherwise multiply x by P and add 1.
%C A057446 Sequence has period 4. - _Alois P. Heinz_, Jan 19 2021
%H A057446 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/CollatzProblem.html">Collatz problem</a>
%H A057446 <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,0,1).
%e A057446 73 -> 13*73+1 = 950 = 2*5^2*19 -> 19, so second term is 19.
%t A057446 m13[n_]:=First[Times@@@Select[FactorInteger[13 n+1],#[[1]]>11&]]; NestList[ m13,73,80] (* or *) PadRight[{},80,{73,19,31,101}] (* _Harvey P. Dale_, Apr 16 2019 *)
%t A057446 a[n_] := a[n] = Which[n == 0, 73, n <= 4, Times @@ Power @@@ Select[ FactorInteger[13 a[n - 1] + 1], #[[1]] >= 13&], True, a[n - 4]];
%t A057446 Table[a[n], {n, 0, 59}] (* _Jean-François Alcover_, Aug 21 2023 *)
%Y A057446 Cf. A057216, A057522 (long version), A057534, A057614.
%K A057446 nonn,easy
%O A057446 0,1
%A A057446 Murad A. AlDamen (Divisibility(AT)yahoo.com), Oct 17 2000