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-2 of 2 results.

A281066 Concatenation R(n)R(n-1)R(n-2)...R(2)R(1) read mod n, where R(x) is the digit-reversal of x (with leading zeros not omitted).

Original entry on oeis.org

0, 1, 0, 1, 1, 3, 3, 1, 0, 1, 4, 9, 5, 7, 6, 1, 6, 9, 17, 1, 15, 15, 19, 9, 21, 1, 18, 13, 28, 21, 26, 17, 15, 3, 16, 9, 30, 3, 15, 1, 1, 33, 10, 37, 36, 43, 22, 33, 19, 21, 48, 45, 2, 45, 26, 49, 27, 33, 33, 21, 48, 25, 36, 49, 36, 15, 22, 5, 27, 11, 42, 9, 2, 73, 21, 17, 59, 57, 5, 1
Offset: 1

Views

Author

Robert G. Wilson v, Jan 14 2017

Keywords

Examples

			a(13) = 31211101987654321 (mod 13) = 5.
		

Crossrefs

Programs

  • Mathematica
    f[n_] := Mod[ FromDigits@ Fold[ Join[ Reverse@ IntegerDigits@#2, #1] &, {}, Range@ n], n]; Array[f, 80]
  • PARI
    a(n) = my(s = ""); forstep (k=n,1,-1, sk = digits(k); forstep (j=#sk, 1, -1, s = concat(s, sk[j]))); eval(s) % n; \\ Michel Marcus, Jan 28 2017
  • Python
    def A281066(n):
        s=""
        for i in range(n, 0, -1):
            s+=str(i)[::-1]
        return int(s)%n # Indranil Ghosh, Jan 28 2017
    

Formula

a(n) = A138793(n) (mod n).

A029527 Numbers k such that k divides the (left) concatenation of all numbers <= k written in base 10 (most significant digit on right and removing all least significant zeros before concatenation).

Original entry on oeis.org

1, 3, 9, 27, 99, 471, 60237, 1028301, 1085427, 2851947
Offset: 1

Views

Author

Keywords

Comments

This sequence differs from A061963 in that all least significant zeros are removed before concatenation.
No more terms < 10^7. - Lars Blomberg, Sep 12 2011

Examples

			See A029519 for example.
		

Crossrefs

Programs

  • Mathematica
    b = 10; c = {}; Select[Range[10^4], Divisible[FromDigits[c = Join[IntegerDigits[IntegerReverse[#, b], b], c], b], #] &] (* Robert Price, Mar 13 2020 *)
  • PARI
    lista(nn, m=10) = my(c, s, t); for(k=1, nn, t+=m^c*s=fromdigits(Vecrev(digits(k, m)), m); c+=logint(s, m)+1; if(t%k==0, print1(k, ", "))); \\ Jinyuan Wang, Dec 05 2020

Extensions

Edited and updated by Larry Reeves (larryr(AT)acm.org), Apr 12 2002
Additional comments from Larry Reeves (larryr(AT)acm.org), May 25 2001. a(7) from Larry Reeves (larryr(AT)acm.org) Jan 14 2002
a(8)-a(10) from Lars Blomberg, Sep 11 2011
Showing 1-2 of 2 results.