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.

A318265 a(1) = 1, a(n) = 5*a(n/3) if n is divisible by 3, otherwise a(n) = n - a(n-1).

Original entry on oeis.org

1, 1, 5, -1, 6, 5, 2, 6, 25, -15, 26, -5, 18, -4, 30, -14, 31, 25, -6, 26, 10, 12, 11, 30, -5, 31, 125, -97, 126, -75, 106, -74, 130, -96, 131, -25, 62, -24, 90, -50, 91, -20, 63, -19, 150, -104, 151, -70, 119, -69, 155, -103, 156, 125, -70, 126, -30, 88, -29, 130, -69, 131, 50, 14, 51, 60, 7, 61, 55, 15, 56, 150
Offset: 1

Views

Author

Altug Alkan and Antti Karttunen, Aug 22 2018

Keywords

Comments

From a generalization of A317825.

Crossrefs

Programs

  • PARI
    a(n)=if(n==1, n, if(n%3==0, 5*a(n/3),n-a(n-1)));