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.

A216099 Period of powers of 3 mod 10^n.

Original entry on oeis.org

4, 20, 100, 500, 5000, 50000, 500000, 5000000, 50000000, 500000000, 5000000000, 50000000000, 500000000000, 5000000000000, 50000000000000, 500000000000000, 5000000000000000, 50000000000000000, 500000000000000000
Offset: 1

Views

Author

V. Raman, Sep 01 2012

Keywords

Crossrefs

Programs

  • Mathematica
    Table[If[n<5,(4*5^n)/5,10^n/20],{n,20}] (* or *) Join[{4,20,100},NestList[ 10#&,500,20]] (* Harvey P. Dale, May 31 2017 *)
  • PARI
    a(n)=if(n<5,4*5^n/5,10^n/20) \\ Charles R Greathouse IV, Mar 26 2016

Formula

a(n) = 4*5^(n-1) for n <= 4.
a(n) = 5*10^(n-2) for n >= 5.

A216096 a(n) = 3^n mod 1000.

Original entry on oeis.org

1, 3, 9, 27, 81, 243, 729, 187, 561, 683, 49, 147, 441, 323, 969, 907, 721, 163, 489, 467, 401, 203, 609, 827, 481, 443, 329, 987, 961, 883, 649, 947, 841, 523, 569, 707, 121, 363, 89, 267, 801, 403, 209, 627, 881, 643, 929, 787, 361, 83, 249, 747, 241, 723, 169, 507, 521, 563, 689
Offset: 0

Views

Author

V. Raman, Sep 01 2012

Keywords

Comments

Period = 100.

Crossrefs

Programs

Extensions

Definition corrected by Zak Seidov, Jul 27 2014
Offset changed and a(0) = 1 prepended by Vincenzo Librandi, Aug 16 2016

A216097 3^n mod 10000.

Original entry on oeis.org

1, 3, 9, 27, 81, 243, 729, 2187, 6561, 9683, 9049, 7147, 1441, 4323, 2969, 8907, 6721, 163, 489, 1467, 4401, 3203, 9609, 8827, 6481, 9443, 8329, 4987, 4961, 4883, 4649, 3947, 1841, 5523, 6569, 9707, 9121, 7363, 2089, 6267, 8801, 6403, 9209, 7627, 2881, 8643, 5929, 7787, 3361, 83, 249, 747
Offset: 0

Views

Author

V. Raman, Sep 01 2012

Keywords

Comments

Period = 500.

Crossrefs

Programs

  • Magma
    [Modexp(3, n, 10000): n in [0..110]]; // Vincenzo Librandi, Aug 16 2016
  • Mathematica
    PowerMod[3,Range[0,60],10000] (* Harvey P. Dale, Oct 18 2015 *)
  • PARI
    for(i=0, 100, print(3^i%10000" "))
    

Extensions

Definition corrected by Zak Seidov, Jul 27 2014
a(0) = 1, offset changed by Vincenzo Librandi, Aug 16 2016
Showing 1-3 of 3 results.