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.

A077430 a(n) = floor(log_10(2*n^2)) + 1.

Original entry on oeis.org

1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5
Offset: 1

Views

Author

Reinhard Zumkeller, Nov 05 2002

Keywords

Crossrefs

A077431 n repeated in decimal representation, but separated by enough zeros that the square has the pattern (n^2)(2n^2)(n^2).

Original entry on oeis.org

11, 22, 303, 404, 505, 606, 707, 8008, 9009, 10010, 11011, 12012, 13013, 14014, 15015, 16016, 17017, 18018, 19019, 20020, 21021, 22022, 230023, 240024, 250025, 260026, 270027, 280028, 290029, 300030, 310031, 320032, 330033, 340034, 350035
Offset: 1

Views

Author

Reinhard Zumkeller, Nov 05 2002

Keywords

Comments

A077433(n) = number of separating zeros.

Examples

			a(17) = 17017, as 17017^2 = 289578289 = A077432(17) = 289'578'289 and 289=17^2 and 578=2*289.
		

Crossrefs

Programs

  • Mathematica
    a[n_] := For[idn = IntegerDigits[n]; k = 0, True, k++, an = FromDigits[ Join[idn, Table[0, k], idn]]; If[MatchQ[IntegerDigits[an^2], {b__ /; IntegerQ[Sqrt[FromDigits[{b}]]], c___, 0..., b__} /; FromDigits[{c}] == 2*FromDigits[{b}]], Return[an]]];
    Array[a, 35] (* Jean-François Alcover, Nov 13 2017 *)

Formula

a(n) = n*(1+10^(1+floor(log_10(2*n^2)))).
Showing 1-2 of 2 results.