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.

A078262 Sum of the forward and reverse concatenations of 1 to n.

Original entry on oeis.org

2, 33, 444, 5555, 66666, 777777, 8888888, 99999999, 1111111110, 23333333231, 2345555545332, 244567776755433, 25466789897765534, 2647689001998775635, 274869910212099785736, 28497092031222200795837, 2950719304132232301805938, 305172940514233242402816039
Offset: 1

Views

Author

Amarnath Murthy, Nov 24 2002

Keywords

Examples

			a(3) = 123 + 321 = 444, a(10) = 12345678910 + 10987654321 = 23333333231.
		

Crossrefs

Programs

  • Maple
    a:= n-> parse(cat(1+n-i$i=1..n))+parse(cat($1..n)):
    seq(a(n), n=1..18);  # Alois P. Heinz, Jun 25 2025
  • Mathematica
    Table[With[{c1=FromDigits[Flatten[IntegerDigits/@Range[n]]],c2= FromDigits[ Flatten[ IntegerDigits/@Range[n,1,-1]]]},c1+c2],{n,20}] (* Harvey P. Dale, Jul 03 2020 *)

Formula

a(n) = A000422(n) + A007908(n). - Sean A. Irvine, Jun 25 2025

Extensions

More terms from Sascha Kurz, Jan 04 2003

A078264 Integer part of the geometric mean of the forward and reverse concatenations of 1 to n.

Original entry on oeis.org

1, 15, 198, 2309, 25895, 284217, 3074048, 32896079, 349188532, 11646890238, 1171148874112, 122278263238675, 12727490844526758, 1320830780128673820, 136722265049041488664, 14120912163801368446154, 1455577353063960520275521, 149780147487160167412789089
Offset: 1

Views

Author

Amarnath Murthy, Nov 24 2002

Keywords

Examples

			a(3) = floor(sqrt(123*321)) = floor(sqrt(39483)) = 198.
		

Crossrefs

Cf. A078263.

Programs

  • PARI
    f="1";b="1";for(i=2,40,print1(sqrtint(eval(f)*eval(b)),",");f=concat(f,Str(i));b=concat(Str(i),b)) \\ Lambert Herrgesell (zero815(AT)googlemail.com), Mar 13 2006

Formula

a(n) = floor(A078263(n)^(1/2)).

Extensions

More terms from Lambert Herrgesell (zero815(AT)googlemail.com), Mar 13 2006
Showing 1-2 of 2 results.