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.

A038395 Concatenation of the first n odd numbers in reverse order.

Original entry on oeis.org

1, 31, 531, 7531, 97531, 1197531, 131197531, 15131197531, 1715131197531, 191715131197531, 21191715131197531, 2321191715131197531, 252321191715131197531, 27252321191715131197531, 2927252321191715131197531, 312927252321191715131197531
Offset: 1

Views

Author

M. I. Petrescu (mipetrescu(AT)yahoo.com)

Keywords

Comments

a(n) starts with the digits of 2n-1. Indices of prime or probable prime terms are 1,2,37,62,409,...: see also A089922. - M. F. Hasler, Apr 13 2008
If n == 0 (mod 3), so is a(n). - Sergey Pavlov, Mar 29 2017

References

  • Mihaly Bencze [Beneze] and L. Tutescu, Some Notions and Questions in Number Theory, Sequence 3.

Crossrefs

Programs

  • Mathematica
    Table[FromDigits[Flatten[IntegerDigits/@Join[Reverse[Range[1,n,2]]]]], {n,1,29,2}] (* Harvey P. Dale, Jun 02 2011 *)
  • PARI
    t=""; for( n=1,10^3, ( t=eval( Str( 2*n-1,t))) & print(n" "t)) \\ M. F. Hasler, Apr 13 2008
    
  • Python
    def a(n): return int("".join(map(str, range(2*n-1, 0, -2))))
    print([a(n) for n in range(1, 17)]) # Michael S. Branicky, Jan 31 2021

Extensions

Edited and extended by M. F. Hasler, Apr 13 2008
Edited by T. D. Noe, Oct 30 2008