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.

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

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

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