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.

A099538 Sum of the first n digits of sqrt(2), including the initial "1".

Original entry on oeis.org

1, 5, 6, 10, 12, 13, 16, 21, 27, 29, 32, 39, 42, 42, 51, 56, 56, 60, 68, 76, 76, 77, 83, 91, 99, 106, 108, 112, 114, 114, 123, 129, 138, 146, 146, 153, 161, 166, 172, 181, 187, 194, 195, 203, 210, 215, 218, 225, 231, 240, 244, 252, 252, 259, 262, 263, 270, 276, 282
Offset: 1

Views

Author

Mark Hudson (mrmarkhudson(AT)hotmail.com), Oct 22 2004

Keywords

Examples

			sqrt(2)=1.41421356237... so the sums are 1, 1+4, 1+4+1, 1+4+1+4, 1+4+1+4+2,...
which gives 1, 5, 6, 10, 12,...
		

Crossrefs

Cf. A002193 for digits of sqrt(2). Other sequences like this one for other constants: A099534-A099537, A039918, A046974, A046975.

Programs

  • Mathematica
    Accumulate[RealDigits[Sqrt[2],10,60][[1]]] (* Harvey P. Dale, May 30 2012 *)

A099539 Sum of the first n decimal places of sqrt(2).

Original entry on oeis.org

4, 5, 9, 11, 12, 15, 20, 26, 28, 31, 38, 41, 41, 50, 55, 55, 59, 67, 75, 75, 76, 82, 90, 98, 105, 107, 111, 113, 113, 122, 128, 137, 145, 145, 152, 160, 165, 171, 180, 186, 193, 194, 202, 209, 214, 217, 224, 230, 239, 243, 251, 251, 258, 261, 262, 269, 275, 281
Offset: 1

Views

Author

Mark Hudson (mrmarkhudson(AT)hotmail.com), Oct 22 2004

Keywords

Comments

Cf. A099538 for a version of this sequence resulting from including all digits of sqrt(2) and not just the digits after the decimal point.

Examples

			Decimal places of sqrt(2) are 41421356237... so sums are 4, 4+1, 4+1+4, 4+1+4+2,... which gives 4, 5, 9, 11, ...
		

Crossrefs

Cf. A099538 and A099534, A099535, A099536, A099537, A039918, A046974, A046975 for analogous sequences based on other constants.

Programs

  • Mathematica
    Accumulate[Rest[RealDigits[N[Sqrt[2],70]][[1]]]] (* Harvey P. Dale, Dec 12 2010 *)

Formula

a(n) = A099538(n+1) - 1.
Showing 1-2 of 2 results.