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

A133613 Decimal digits such that for all k >= 1, the number A(k) := Sum_{n = 0..k-1} a(n)*10^n satisfies the congruence 3^A(k) == A(k) (mod 10^k).

Original entry on oeis.org

7, 8, 3, 5, 9, 1, 4, 6, 4, 2, 6, 2, 7, 2, 6, 5, 7, 5, 4, 0, 1, 9, 5, 0, 9, 3, 4, 6, 8, 1, 5, 8, 4, 8, 1, 0, 7, 6, 9, 3, 2, 7, 8, 4, 3, 2, 2, 2, 3, 0, 0, 8, 3, 6, 6, 9, 4, 5, 0, 9, 7, 6, 9, 3, 9, 9, 8, 1, 6, 9, 9, 3, 6, 9, 7, 5, 3, 5, 2, 6, 5, 1, 5, 8, 3, 9, 1, 8, 1, 0, 5, 6, 2, 8, 4, 2, 4, 0, 4, 9, 8, 0, 5, 1, 6
Offset: 0

Views

Author

Daniel Geisler (daniel(AT)danielgeisler.com), Dec 18 2007

Keywords

Comments

10-adic expansion of the iterated exponential 3^^n for sufficiently large n (where c^^n denotes a tower of c's of height n). E.g., for n>9, 3^^n == 4195387 (mod 10^7).
This sequence also gives many final digits of Graham's number ...399618993967905496638003222348723967018485186439059104575627262464195387. - Paul Muljadi, Sep 08 2008 and J. Luis A. Yebra, Dec 22 2008
Graham's number can be represented as G(64):=3^^3^^...^^3 [see M. Gardner and Wikipedia], in which case its G(63) lowermost digits are guaranteed to match this sequence (i.e., the convergence speed of the base 3 is unitary - see A317905). To avoid such confusion, it would be best to interpret this sequence as a real-valued constant 0.783591464..., corresponding to 3^^k in the limit of k->infinity, and call it Graham's constant G(3). Generalizations to G(n) and G(n,base) are obvious. - Stanislav Sykora, Nov 07 2015
Let G(64) be Graham's number. Let b and c be two (strictly) positive integers so that the super-logarithm base b of c (i.e., slog_b(c)) is well defined. Then, this sequence gives the slog_3(G(64))-1 final digits of G(64) since the congruence speed of 3 is equal to 0 at height 1 while it is 1 for all the integer hyperexponents above 0 (i.e., 3 is characterized by a constant congruence speed of 1, as proved by Lemma 1 of "On the congruence speed of tetration" and also confirmed by Equation (16) of "Number of stable digits of any integer tetration" - see Links). On the other hand, the difference between the slog_3(G(64))-th rightmost digit of G(64) and a(slog_3(G(64))) is congruent to 6 modulo 10 (since the asymptotic phase shift of 3 is [4,6] - see A376842). - Marco Ripà, Oct 17 2024

Examples

			783591464262726575401950934681584810769327843222300836694509769399816993697535...
Consider the sequence 3^^n: 1, 3, 27, 7625597484987, ... From 3^^3 = 7625597484987 onwards, all terms end with the digits 87. This follows from Euler's generalization of Fermat's little theorem.
		

References

  • M. Gardner, Mathematical Games, Scientific American 237, 18 - 28 (1977).
  • M. Ripà, La strana coda della serie n^n^...^n, Trento, UNI Service, Nov 2011, p. 11-12, 69-78. ISBN 978-88-6178-789-6.
  • Ilan Vardi, "Computational Recreations in Mathematica," Addison-Wesley Publishing Co., Redwood City, CA, 1991, pages 226-229.

Crossrefs

Programs

  • Mathematica
    (* Import Mmca coding for "SuperPowerMod" and "LogStar" from text file in A133612 and then *) $RecursionLimit = 2^14; f[n_] := SuperPowerMod[3, n + 1, 10^n]; Reverse@ IntegerDigits@ f@ 105 (* Robert G. Wilson v, Mar 06 2014 *)

Formula

a(n) = floor( A183613(n+1) / 10^n ).

Extensions

More terms from J. Luis A. Yebra, Dec 12 2008
Edited by N. J. A. Sloane, Dec 22 2008
More terms from Robert G. Wilson v, May 07 2010

A288845 Values of n such that 4^n ends in n, or expomorphic numbers in base 4.

Original entry on oeis.org

6, 96, 896, 8896, 28896, 728896, 1728896, 11728896, 411728896, 90411728896, 290411728896, 5290411728896, 55290411728896, 555290411728896, 2555290411728896, 302555290411728896, 2302555290411728896, 22302555290411728896, 622302555290411728896, 3622302555290411728896
Offset: 1

Views

Author

Bernard Schott, Jun 18 2017

Keywords

Comments

Definition: For positive integers b (as base) and n, the positive integer (allowing initial zeros) a(n) is expomorphic relative to base b (here 4) if a(n) has exactly n decimal digits and if b^a(n) == a(n) (mod 10^n) or, equivalently, b^a(n) ends in a(n). [See Crux Mathematicorum link.]
For sequences in the OEIS, no term is allowed to begin with a digit 0 (except for the 1-digit number 0 itself). However, in the problem as defined in the Crux Mathematicorum article, leading 0 digits are allowed; under that definition, "0411728896" would be included because the last 10 digits of 4^0411728896 are 0411728896, and also 02555290411728896" because the last 17 digits of 4^02555290411728896 are "02555290411728896". However, these are not in the sequence as defined here. - Jon E. Schoenfield

Examples

			4^6 = 4096 ends in 6, so 6 is a term; 4^96 = ....896 ends in 96, so 96 is another term.
		

Crossrefs

Cf. A064541 (base 2), A183613 (base 3).
Cf. A003226 (automorphic numbers), A033819 (trimorphic numbers), A133614.

Programs

Extensions

a(6)-a(9) from Gheorghe Coserea, Jun 21 2017
a(10)-a(11) from Robert G. Wilson v, Jun 24 2017

A306686 Values of n such that 9^n ends in n, or expomorphic numbers relative to "base" 9.

Original entry on oeis.org

9, 89, 289, 5289, 45289, 745289, 2745289, 92745289, 392745289, 7392745289, 97392745289, 597392745289, 7597392745289, 87597392745289, 8087597392745289, 48087597392745289, 748087597392745289, 10748087597392745289, 610748087597392745289, 5610748087597392745289
Offset: 1

Views

Author

Bernard Schott, Mar 05 2019

Keywords

Comments

Definition: For positive integers b (as base) and n, the positive integer (allowing initial zeros) k(n) is expomorphic relative to base b (here 9) if k(n) has exactly n decimal digits and if b^k(n) == k(n) (mod 10^n) or, equivalently, b^k(n) ends in k(n). [See Crux Mathematicorum link.]
For sequences in the OEIS, no term is allowed to begin with a digit 0 (except for the 1-digit number 0 itself). However, in the problem as defined in the Crux Mathematicorum article, leading 0 digits are allowed; under that definition a(n) = k(n) until the first k(n) which begins with digit 0. When k(n) begins with 0, then, a(n) is the next term of the sequence k(n) which doesn't begin with digit 0.
Conjecture: if k(n) is expomorphic relative to "base" b, then, the next one in the sequence, k(n+1), consists of the last n+1 digits of b^k(n).
a(n) is the backward concatenation of A133619(0) through A133619(n-1). So, a(1) = 9, a(2) = 89 and so on, with recognition of the former comments about the OEIS and terms beginning with 0. - Davis Smith, Mar 07 2019

Examples

			9^9 = 387420489 ends in 9, so 9 is a term; 9^89 = .....289 ends in 89, so 89 is another term.
		

Crossrefs

Cf. A064541 (base 2), A183613 (base 3), A288845 (base 4), A306570 (base 5), A290788 (base 6), A321970 (base 7), A289138 (smallest expomorphic number in base n).
Cf. A003226 (automorphic numbers), A033819 (trimorphic numbers).
Cf. A133619 (leading digits).

Programs

  • PARI
    tetrmod(b, n, m)=my(t=b); for(i=1, n, if(i>1, t=lift(Mod(b,m)^t), t)); t
    for(n=1, 21,if(tetrmod(9,n,10^n)!=tetrmod(9,n-1,10^(n-1)),print1(tetrmod(9,n,10^(n-1)),", "))) \\ Davis Smith, Mar 09 2019

Extensions

a(8)-a(20) from Davis Smith, Mar 07 2019

A206636 a(n) = 2^^(n+2) modulo 10^n, where ^^ denotes a power tower (see A133612).

Original entry on oeis.org

6, 36, 736, 8736, 48736, 948736, 2948736, 32948736, 432948736, 3432948736, 53432948736, 353432948736, 5353432948736, 75353432948736, 75353432948736, 5075353432948736, 15075353432948736, 615075353432948736, 8615075353432948736, 98615075353432948736, 98615075353432948736, 8098615075353432948736
Offset: 1

Views

Author

Marco Ripà, Feb 10 2012

Keywords

Comments

Backward concatenation of A133612.
For all m>n+1, 2^^m == 2^^(n+2) (mod 10^n). Hence, each term represents the trailing decimal digits of 2^^m for every sufficiently large m.

References

  • M. Ripà, La strana coda della serie n^n^...^n, Trento, UNI Service, Nov 2011. ISBN 978-88-6178-789-6.

Crossrefs

Programs

  • Mathematica
    (* first load all lines of Super Power Mod by Ilan Vardi from the hyper-link, then *) $RecursionLimit = 2^14;  a[n_] := SuperPowerMod[2, n +2, 10^n]; Array[a, 22] (* Robert G. Wilson v, Apr 20 2020 *)

Formula

a(n) = A014221(n+3) mod (10^n).
For n>1, a(n) = 2^a(n-1) mod 10^n.

A306570 Values of n such that 5^n ends in n, or expomorphic numbers relative to "base" 5.

Original entry on oeis.org

5, 25, 125, 3125, 203125, 8203125, 408203125, 8408203125, 18408203125, 618408203125, 2618408203125, 52618408203125, 152618408203125, 3152618408203125, 93152618408203125, 493152618408203125, 7493152618408203125, 17493152618408203125, 117493152618408203125, 7117493152618408203125, 87117493152618408203125
Offset: 1

Views

Author

Bernard Schott, Feb 24 2019

Keywords

Comments

Definition: For positive integers b (as base) and n, the positive integer (allowing initial zeros) k(n) is expomorphic relative to base b (here 5) if k(n) has exactly n decimal digits and if b^k(n) == k(n) (mod 10^n) or, equivalently, b^k(n) ends in k(n). [See Crux Mathematicorum link.]
For sequences in the OEIS, no term is allowed to begin with a digit 0 (except for the 1-digit number 0 itself). However, in the problem as defined in the Crux Mathematicorum article, leading 0 digits are allowed; under that definition a(n) = k(n) until the first k(n) which begins with digit 0. When k(n) begins with 0, then, a(n) is the next term of the sequence k(n) which doesn't begin with digit 0.
Under that definition, the term after a(4) = 3125 is not "03125" but a(5) = 203125. [Comments from Jon E. Schoenfield in A288845 and discussion with Rémy Sigrist]
Conjecture: if k(n) is expomorphic relative to "base" b, then, the next one in the sequence, k(n+1), consists of the last n+1 digits of b^k(n).
a(n) is the backward concatenation of A133615(0) through A133615(n-1). So, a(1) is 5, a(2) is 25, and so on, with recognition of the comments about the OEIS and terms beginning with 0 (for example, when n = 5, A133615(n-1) = 0, so the next nonzero digit is concatenated as well, reducing the amount subtracted from n by 1). - Davis Smith Mar 07 2019

Examples

			5^5 = 25 ends in 5, so 5 is a term; 5^25 = ...125 ends in 25, so 25 is another term.
		

Crossrefs

Cf. A064541 (base 2), A183613 (base 3), A288845 (base 4), A290788 (base 6), A321970 (base 7), A306686 (base 9), A289138 (smallest expomorphic number in base n).
Cf. A003226 (automorphic numbers), A033819 (trimorphic numbers).
Cf. A133615 (leading digits).

Programs

  • PARI
    is(n) = my(t=#digits(n)); lift(Mod(5, 10^t)^n)==n
    for(n=1, oo, my(x=n*5); if(lift(Mod(5, 10)^x)==x%10, if(is(x), print1(x, ", ")))) \\ Felix Fröhlich, Feb 24 2019
    
  • PARI
    tetrmod(b,n,m)=my(t=b); for(i=1, n, if(i>1, t=lift(Mod(b,m)^t), t)); t
    for(n=1, 21,if(tetrmod(5,n,10^n)!=tetrmod(5,n-1,10^(n-1)),print1(tetrmod(5,n,10^(n-1)),", "))) \\ Davis Smith, Mar 09 2019

Extensions

a(5)-a(7) from Felix Fröhlich, Feb 24 2019
a(8) from Michel Marcus, Mar 02 2019
a(9)-a(21) from Davis Smith, Mar 07 2019

A290788 Values of n such that 6^n ends in n, or expomorphic numbers in "base" 6.

Original entry on oeis.org

6, 56, 656, 8656, 38656, 238656, 7238656, 47238656, 447238656, 7447238656, 27447238656, 227447238656, 3227447238656
Offset: 1

Views

Author

Bernard Schott, Aug 10 2017

Keywords

Comments

Definition: For positive integers b (as base) and n, the positive integer (allowing initial 0's) a(n) is expomorphic relative to base b (here 6) if a(n) has exactly n decimal digits and if b^a(n) == a(n) (mod 10^n) or, equivalently, b^a(n) ends in a(n). [See Crux Mathematicorum link.]

Examples

			6^6 = 46656 ends in 6, so 6 is a term.
6^56 = ...656 ends in 56, so 56 is another term.
		

Crossrefs

Cf. A064541 (base 2), A183613 (base 3), A288845 (base 4), A289138, A306570 (base 5), A306686 (base 9).
Cf. A003226 (automorphic numbers), A033819 (trimorphic numbers).

Programs

  • Mathematica
    Select[Range[10^6], PowerMod[6, #, 10^(1 + Floor@ Log10[#])] == # &] (* Michael De Vlieger, Apr 13 2021 *)
  • PARI
    is(n)=my(m=10^#digits(n)); Mod(6,m)^n==n \\ Charles R Greathouse IV, Aug 10 2017

Extensions

a(6)-a(9) from Charles R Greathouse IV, Aug 10 2017
a(10)-a(13) from Chai Wah Wu, Apr 13 2021

A347560 a(n) is the number of solutions to Conv(b,n)=b where Conv(b,n) denotes the limit of b^^t (mod n) as t goes to infinity.

Original entry on oeis.org

2, 2, 3, 2, 5, 4, 5, 4, 5, 3, 8, 3, 7, 8, 7, 4, 9, 3, 10, 8, 8, 5, 14, 6, 9, 4, 12, 6, 15, 9, 7, 10, 9, 10, 14, 4, 9, 10, 18, 7, 19, 5, 13, 14, 10, 3, 20, 10, 13, 12, 14, 7, 9, 12, 20, 10, 13, 7, 28, 9, 15, 21, 11, 17, 24, 10, 14, 13, 22, 15, 24, 7, 9, 17, 17, 20, 24, 10, 28
Offset: 2

Views

Author

Bernat Pagès Vives, Sep 06 2021

Keywords

Comments

Writing n = m^(2k), a(n) >= 2^A001221(n) + m^k - 1.
Writing n = m^(2k+1), a(n) >= 2^A001221(n) + m^k - 1.
If n is in A101793, then a(n) = 3.
It appears that a(n) = 2 only for n = 2, 3, 5.
It appears that a(n) = 3 only for n = 4, 11, 13, 19 and for n in A101793.
It is not known whether there exist infinitely many numbers n satisfying a(n) = 3.

Examples

			For n = 100, pick b = 3.
3^^1 ==  3 (mod 100)
3^^2 == 27 (mod 100)
3^^3 == 87 (mod 100)
3^^4 == 87 (mod 100)
3^^5 == 87 (mod 100)
...
It can be proved that the sequence converges to 87, so Conv(3,100) = 87. Since b = 3 does not satisfy Conv(b,100) = b, this value is not counted in a(100).
For n = 7, pick b = 2.
2^^1 == 2 (mod 7)
2^^2 == 4 (mod 7)
2^^3 == 2 (mod 7)
2^^4 == 2 (mod 7)
2^^5 == 2 (mod 7)
...
It can be proved that the sequence converges to 2, so Conv(2,7) = 2. Thus, 2 is a solution for a(7). The other 3 solutions are 0, 1 and 4 giving a total of a(7) = 4 solutions.
		

Crossrefs

Programs

  • Mathematica
    Conv[b_,n_] :=
    Which[
    Mod[b,n]==0,Return[0],
    Mod[b,n]==1,Return[1],
    GCD[b,n]==1,Return[PowerMod[b,Conv[b,MultiplicativeOrder[b,n]],n]],
    True,Return[PowerMod[b,EulerPhi[n]+Conv[b,EulerPhi[n]],n]]
    ]
    a[n_] := Count[Table[Conv[b,n]==b,{b,0,n-1}],True]
  • PARI
    conv(b, n) = {if (b % n == 0, return (0)); if (b % n == 1, return (1)); if (gcd(b, n)==1, return (lift(Mod(b, n)^conv(b, lift(znorder(Mod(b, n))))))); lift(Mod(b, n)^(eulerphi(n) + conv(b, eulerphi(n))));}
    a(n) = sum(b=0, n-1, conv(b, n) == b); \\ Michel Marcus, Sep 13 2021

A347561 Numbers m such that Conv(b,m) = b has a unique nontrivial solution (b = 0 and b = 1 are considered trivial solutions). Here, Conv(b,m) denotes the limit of b^^t (mod m) as t goes to infinity.

Original entry on oeis.org

4, 11, 13, 19, 47, 719, 1439, 2879, 4079, 4127, 5807, 6047, 7247, 7727, 9839, 10799, 11279, 13967, 14159, 15647, 21599, 24527, 28319, 28607, 42767, 44687, 45887, 48479, 51599, 51839, 67247, 68639, 72767, 77279, 79967, 81647, 84047, 84719, 89087
Offset: 1

Views

Author

Bernat Pagès Vives, Sep 06 2021

Keywords

Comments

A101793 is a subsequence.
It appears that a(n) = A101793(n-4) for n>=5.
Except for n = 1, a(n) is prime.

Examples

			For a(2), we have:
Conv(2,11) = 9
Conv(3,11) = 9
Conv(4,11) = 4
Conv(5,11) = 1
Conv(6,11) = 5
Conv(7,11) = 2
Conv(8,11) = 3
Conv(9,11) = 5
Conv(10,11) = 1
Therefore, the only solution is Conv(4,11) = 4.
		

Crossrefs

Programs

  • Mathematica
    Conv[b_,m_] :=
    Which[
    Mod[b,m]==0,Return[0],
    Mod[b,m]==1,Return[1],
    GCD[b,m]==1,Return[PowerMod[b,Conv[b,MultiplicativeOrder[b,m]],m]],
    True,Return[PowerMod[b,EulerPhi[m]+Conv[b,EulerPhi[m]],m]]
    ]
    a[m_] := Count[Table[Conv[b,m]==b,{b,0,m-1}],True]
    Table[If[a[i]==3,i,## &[]],{i,2,800}]
  • PARI
    conv(b, n) = {if (b % n == 0, return (0)); if (b % n == 1, return (1)); if (gcd(b, n)==1, return (lift(Mod(b, n)^conv(b, lift(znorder(Mod(b, n))))))); lift(Mod(b, n)^(eulerphi(n) + conv(b, eulerphi(n))));}
    isok(m) = sum(b=2, m-1, conv(b, m) == b) == 1; \\ Michel Marcus, Sep 13 2021

A351410 Numbers m such that the decimal representation of 8^m ends in m.

Original entry on oeis.org

56, 856, 5856, 25856, 225856, 5225856, 95225856, 895225856, 6895225856, 16895225856, 416895225856, 5416895225856, 35416895225856, 7035416895225856, 77035416895225856, 577035416895225856, 1577035416895225856, 21577035416895225856, 521577035416895225856, 1521577035416895225856, 81521577035416895225856
Offset: 1

Views

Author

Bernard Schott, Feb 10 2022

Keywords

Comments

The Crux Mathematicorum link calls these numbers "expomorphic" relative to "base" b, with here b = 8.
Under that definition, the term after a(13) = 35416895225856 is not "035416895225856" or "35416895225856" but a(14) = 7035416895225856.
Conjecture: if k(n) is "expomorphic" relative to "base" b, then the next one in the sequence, k(n+1), consists of the last n+1 digits of b^k(n).
This conjecture is true. See A133618. - David A. Corneth, Feb 10 2022

Examples

			8^56 = 374144419156711147060143317175368453031918731001856, so 56 is a term.
8^856 = ...5856 ends in 856, so 856 is another term.
		

Crossrefs

Cf. A003226 (automorphic numbers), A033819 (trimorphic numbers).
Cf. A133618 (leading digits).

Extensions

a(7)-a(8) from Michel Marcus, Feb 10 2022
More terms from David A. Corneth, Feb 10 2022
Showing 1-9 of 9 results.