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.

A336483 a(n) = floor(n/10) + (5 times last digit of n).

Original entry on oeis.org

0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 1, 6, 11, 16, 21, 26, 31, 36, 41, 46, 2, 7, 12, 17, 22, 27, 32, 37, 42, 47, 3, 8, 13, 18, 23, 28, 33, 38, 43, 48, 4, 9, 14, 19, 24, 29, 34, 39, 44, 49, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 6, 11, 16, 21, 26, 31, 36, 41, 46, 51, 7
Offset: 0

Views

Author

Michel Marcus, Aug 11 2020

Keywords

Comments

If the resulting number is divisible by 7, then n is divisible by 7; (re)discovered by 12-year-old Nigerian Chika Ofili.

References

  • L. E. Dickson, History of the theory of numbers. Vol. I: Divisibility and primality. Chelsea Publishing Co., New York 1966.

Crossrefs

Programs

  • Mathematica
    Table[Floor[n/10]+5Mod[n,10],{n,0,80}] (* or  *) LinearRecurrence[{1,0,0,0,0,0,0,0,0,1,-1},{0,5,10,15,20,25,30,35,40,45,1},80] (* Harvey P. Dale, Nov 01 2023 *)
  • PARI
    a(n) = 5*(n % 10) + (n\10);

Formula

From Stefano Spezia, Aug 11 2020: (Start)
O.g.f.: x*(5 + 5*x + 5*x^2 + 5*x^3 + 5*x^4 + 5*x^5 + 5*x^6 + 5*x^7 + 5*x^8 - 44*x^9)/(1 - x - x^10 + x^11).
a(n) = a(n-1) + a(n-10) - a(n-11) for n > 10. (End)