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.

A038397 Concatenate first n squares in reverse order.

Original entry on oeis.org

1, 41, 941, 16941, 2516941, 362516941, 49362516941, 6449362516941, 816449362516941, 100816449362516941, 121100816449362516941, 144121100816449362516941, 169144121100816449362516941, 196169144121100816449362516941, 225196169144121100816449362516941
Offset: 1

Views

Author

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

Keywords

References

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

Crossrefs

Programs

  • Haskell
    a038397 n = a038397_list !! (n-1)
    a038397_list = f "" $ tail a000290_list where
       f xs (q:qs) = (read ys :: Integer) : f ys qs
         where ys = show q ++ xs
    -- Reinhard Zumkeller, Mar 01 2014
  • Maple
    a:= proc(n) a(n):= `if`(n=1, 1, parse(cat(n^2, a(n-1)))) end:
    seq(a(n), n=1..20);  # Alois P. Heinz, Jan 13 2021
  • Mathematica
    Join[{s = 1}, Table[s = FromDigits[Flatten[IntegerDigits[{n^2, s}]]], {n, 2, 12}]] (* Jayanta Basu, Jul 14 2013 *)