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

A175348 Last digit of p^p, where p is the n-th prime.

Original entry on oeis.org

4, 7, 5, 3, 1, 3, 7, 9, 7, 9, 1, 7, 1, 7, 3, 3, 9, 1, 3, 1, 3, 9, 7, 9, 7, 1, 7, 3, 9, 3, 3, 1, 7, 9, 9, 1, 7, 7, 3, 3, 9, 1, 1, 3, 7, 9, 1, 7, 3, 9, 3, 9, 1, 1, 7, 7, 9, 1, 7, 1, 7, 3, 3, 1, 3, 7, 1, 7, 3, 9, 3, 9, 3, 3, 9, 7, 9, 7, 1, 9, 9, 1, 1, 3, 9, 7, 9, 7, 1, 7, 3, 9, 3, 1, 9, 7, 9, 1, 7, 1, 3, 7, 7, 9, 1
Offset: 1

Views

Author

Keywords

Comments

Euler and Sadek ask whether the sequence, interpreted as the decimal expansion N = 0.47531..., is rational or irrational.
Dickson's conjecture implies that each finite sequence with values in {1,3,7,9} occurs as a substring. In particular, this implies that the above N is irrational. - Robert Israel, Jan 26 2017

Examples

			prime(4) = 7 and 7^7 = 823543, so a(4) = 3.
		

References

  • R. Euler and J. Sadek, A number that gives the unit digit of n^n. Journal of Recreational Mathematics, 29:3 (1998), pp. 203-204.

Crossrefs

Programs

  • Maple
    R:= [seq(i &^ i mod 10, i=1..20)]:
    seq(R[ithprime(i) mod 20],i=1..100); # Robert Israel, Jan 26 2017
  • Mathematica
    Table[PowerMod[n,n,10],{n,Prime[Range[110]]}] (* Harvey P. Dale, Mar 24 2024 *)
  • PARI
    a(n)=[1,4,7,0,5,0,3,0,9,0,1,0,3,0,0,0,7,0,9][prime(n)%20]

Formula

a(n) = A056849(A000040(n)). - Robert Israel, Jan 26 2017

A137831 a(n) = (prime(n)^2 minus its last digit)/20.

Original entry on oeis.org

0, 0, 1, 2, 6, 8, 14, 18, 26, 42, 48, 68, 84, 92, 110, 140, 174, 186, 224, 252, 266, 312, 344, 396, 470, 510, 530, 572, 594, 638, 806, 858, 938, 966, 1110, 1140, 1232, 1328, 1394, 1496, 1602, 1638, 1824, 1862, 1940, 1980, 2226, 2486, 2576, 2622, 2714, 2856
Offset: 1

Views

Author

Paul Curtz, Apr 29 2008

Keywords

Crossrefs

Programs

  • Maple
    a:= n-> iquo(ithprime(n)^2, 10)/2:
    seq(a(n), n=1..52);  # Alois P. Heinz, Jun 03 2025
  • Mathematica
    a[n_]:=(Prime[n]^2-Mod[Prime[n]^2,10])/20;Array[a,52] (* James C. McMahon, Jun 03 2025 *)

Formula

a(n) = (A001248(n)-A137807(n))/20. - R. J. Mathar, May 23 2008

Extensions

More terms from R. J. Mathar, May 23 2008
Showing 1-2 of 2 results.