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.

A230024 Final nonzero digit of n^n in base 16.

Original entry on oeis.org

1, 4, 11, 1, 5, 4, 7, 1, 9, 4, 3, 1, 13, 4, 15, 1, 1, 4, 11, 1, 5, 4, 7, 1, 9, 4, 3, 1, 13, 4, 15, 1, 1, 4, 11, 1, 5, 4, 7, 1, 9, 4, 3, 1, 13, 4, 15, 1, 1, 4, 11, 1, 5, 4, 7, 1, 9, 4, 3, 1, 13, 4, 15, 1, 1, 4, 11, 1, 5, 4, 7, 1, 9, 4, 3, 1, 13, 4, 15, 1, 1
Offset: 1

Views

Author

Keywords

Comments

The sequence is periodic with period length 16.

Crossrefs

Programs

  • Mathematica
    f[n_, b_] := Module[{m = n^n}, While[Mod[m, b] == 0, m = m/b]; Mod[m, b]]; y = Table[f[i, 16], {i, 1, 100}]
    Table[Drop[IntegerDigits[n^n,16],-IntegerExponent[n^n,16]][[-1]],{n,100}] (* or *) PadRight[{},100,{1,4,11,1,5,4,7,1,9,4,3,1,13,4,15,1}] (* Harvey P. Dale, Oct 02 2024 *)