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.

A222816 Numbers k that divide the base-5 reversal of k.

Original entry on oeis.org

8, 48, 144, 208, 248, 744, 1008, 1248, 3744, 5008, 5208, 6048, 6248, 18744, 25008, 26208, 30048, 31248, 90144, 93744, 125008, 126008, 130208, 131208, 150048, 151048, 155248, 156248, 450144, 468744, 625008, 631008, 650208, 656208, 750048, 756048, 775248, 781248
Offset: 1

Views

Author

N. J. A. Sloane, Mar 13 2013

Keywords

Comments

The base-B reversal of k is obtained by writing k in base B and reversing the order of the digits.

Examples

			8 in base 5 is 13_5; its reverse is 31_5, which is 16 in base 10, and 8 divides 16, so 8 is in the sequence.
		

Crossrefs

Programs

  • Mathematica
    Select[Range[10^6],Divisible[s=FromDigits[Reverse@IntegerDigits[#,5],5],#]&&s!=#&] (* Giorgos Kalogeropoulos, Aug 20 2021 *)
  • PARI
    isok(n) = (rdn = subst(Polrev(digits(n,  5)), x, 5)) && (rdn != n) && (rdn % n) == 0; \\ Michel Marcus, Oct 10 2014

Extensions

More terms from Alois P. Heinz, Mar 13 2013