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

A366711 a(n) = phi(12^n-1), where phi is Euler's totient function (A000010).

Original entry on oeis.org

10, 120, 1560, 13440, 226200, 2021760, 32518360, 274391040, 4534807680, 51953616000, 646094232960, 4662793175040, 97266341877120, 1070382142166400, 13666309113600000, 109897747141754880, 2016918439151095000, 17518491733377024000, 290436363064202660760
Offset: 1

Views

Author

Sean A. Irvine, Oct 17 2023

Keywords

Crossrefs

phi(k^n-1): A053287 (k=2), A295500 (k=3), A295501 (k=4), A295502 (k=5), A366623 (k=6), A366635 (k=7), A366654 (k=8), A366663 (k=9), A295503 (k=10), A366685 (k=11), this sequence (k=12).

Programs

  • Mathematica
    EulerPhi[12^Range[30] - 1]
  • PARI
    {a(n) = eulerphi(12^n-1)}

A366719 Smallest prime dividing 12^n + 1.

Original entry on oeis.org

2, 13, 5, 7, 89, 13, 5, 13, 17, 7, 5, 13, 89, 13, 5, 7, 153953, 13, 5, 13, 41, 7, 5, 13, 17, 13, 5, 7, 89, 13, 5, 13, 769, 7, 5, 13, 89, 13, 5, 7, 17, 13, 5, 13, 89, 7, 5, 13, 7489, 13, 5, 7, 89, 13, 5, 13, 17, 7, 5, 13, 41, 13, 5, 7, 36097, 13, 5, 13, 89, 7
Offset: 0

Views

Author

Sean A. Irvine, Oct 17 2023

Keywords

Crossrefs

Programs

Formula

a(n) = A020639(A178248(n)). - Paul F. Marrero Romero, Oct 25 2023

A366720 Largest prime factor of 12^n+1.

Original entry on oeis.org

2, 13, 29, 19, 233, 19141, 20593, 13063, 260753, 1801, 85403261, 57154490053, 2227777, 222379, 13156924369, 35671, 1200913648289, 66900193189411, 122138321401, 905265296671, 67657441, 1885339, 68368660537, 49489630860836437, 592734049, 438472201
Offset: 0

Views

Author

Sean A. Irvine, Oct 17 2023

Keywords

Crossrefs

Programs

  • Mathematica
    Table[FactorInteger[12^n + 1][[-1, 1]], {n, 0, 20}]

Formula

a(n) = A006530(A178248(n)). - Paul F. Marrero Romero, Dec 07 2023

A366718 Largest prime factor of 12^n - 1.

Original entry on oeis.org

11, 13, 157, 29, 22621, 157, 4943, 233, 80749, 22621, 266981089, 20593, 20369233, 13063, 22621, 260753, 74876782031, 80749, 29043636306420266077, 85403261, 8177824843189, 57154490053, 321218438243, 2227777, 12629757106815551, 20369233, 86769286104133
Offset: 1

Views

Author

Sean A. Irvine, Oct 17 2023

Keywords

Crossrefs

Programs

  • Magma
    [Maximum(PrimeDivisors(12^n-1)): n in [1..40]];
  • Mathematica
    Table[FactorInteger[12^n - 1][[-1, 1]], {n, 40}]

Formula

a(n) = A006530(A024140(n)).

A368811 a(n) = period length of the sequence A020639(n^k - 1), k >= 1.

Original entry on oeis.org

1, 1, 1, 1, 1, 2, 1, 1, 1, 12, 1, 10, 1, 1, 1, 60, 1, 10, 1, 1, 1, 18, 1, 2, 1, 1, 1, 660, 1, 66, 1, 1, 1, 1, 1, 10, 1, 1, 1, 4620, 1, 6, 1, 1, 1, 660, 1, 2, 1, 1, 1, 31878, 1, 2, 1, 1, 1, 197340, 1, 5742, 1, 1, 1, 1, 1, 52026, 1, 1, 1, 440220, 1, 28014, 1, 1, 1, 4, 1, 2610, 1, 1, 1, 28014, 1, 2, 1, 1, 1, 3693690, 1, 2, 1, 1, 1, 1, 1, 7590, 1, 1, 1, 1642460820
Offset: 3

Views

Author

Max Alekseyev, Jan 06 2024

Keywords

Comments

For n = 2, the sequence A020639(n^k - 1) is not periodic (see A049479), but it is such for any n >= 3.
a(n) divides A058254(A000720(A020639(n-1))).

Examples

			a(8) = 2 is the period length of A010705.
a(12) = 12 is the period length of A366717.
		

Crossrefs

Programs

  • PARI
    { a368811(n) = my(r=[], z); forprime(p=2, factor(n-1)[1, 1], if(n%p==0, next); z=znorder(Mod(n, p)); if(!#r || vecmin(apply(x->z%x,r)), r=concat(r,[z])) ); lcm(r); }

Formula

For odd n >= 3, a(n) = 1.
Showing 1-5 of 5 results.