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.

A055961 a(n) = n - (reversal of base-11 digits of n) (written in base 10).

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, -10, -20, -30, -40, -50, -60, -70, -80, -90, 20, 10, 0, -10, -20, -30, -40, -50, -60, -70, -80, 30, 20, 10, 0, -10, -20, -30, -40, -50, -60, -70, 40, 30, 20, 10, 0, -10, -20, -30, -40, -50, -60, 50, 40, 30, 20, 10, 0, -10, -20, -30, -40, -50, 60, 50, 40, 30, 20, 10, 0, -10, -20, -30, -40
Offset: 0

Views

Author

Henry Bottomley, Jul 18 2000

Keywords

Comments

a(n) is a multiple of 10.

Crossrefs

Cf. A056960 (base-11 reversal), A056965 (n minus decimal reversal).

Programs

  • Maple
    f:= proc(n) local L,t;
      L:= convert(n,base,11);
      n - add(L[-i]*11^(i-1),i=1..nops(L))
    end proc:
    map(f, [$0..100]); # Robert Israel, Apr 20 2021
  • Mathematica
    Table[n-FromDigits[Reverse[IntegerDigits[n,11]],11],{n,0,80}] (* Harvey P. Dale, Feb 21 2023 *)
  • PARI
    a(n) = n - fromdigits(Vecrev(digits(n, 11)), 11); \\ Michel Marcus, Apr 22 2021

Formula

a(n) = n - A056960(n).