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.

A181184 | (n-th digit of Pi) - (n-th digit of phi (golden ratio)) |.

Original entry on oeis.org

2, 5, 3, 7, 5, 6, 1, 3, 3, 5, 2, 4, 0, 1, 0, 1, 6, 1, 0, 2, 6, 2, 1, 4, 3, 5, 5, 1, 1, 1, 4, 1, 3, 6, 7, 7, 3, 6, 7, 7, 2, 6, 0, 2, 2, 0, 5, 7, 0, 6, 6, 3, 0, 4, 2, 8, 4, 1, 5, 0, 4, 1, 7, 0, 4, 0, 2, 6, 5, 6, 0, 6, 4, 6, 7, 2, 7, 0, 6, 5, 5, 1, 1, 2, 1, 2, 3, 3, 6, 2, 1, 2, 4, 7, 2, 8, 6, 1, 3, 0, 5, 0, 2, 6, 1, 4
Offset: 0

Views

Author

Jani Melik, Jan 26 2011

Keywords

Crossrefs

Programs

  • Maple
    std:=105:   Digits:=2*std:
    num1:=Pi:   num2:=(1+sqrt(5))/2:
    A181184:=proc(n) local a, b, c, d, i, am;
    a:=evalf(num1-trunc(num1),2*std):
    b:=evalf(num2-trunc(num2),2*std):
    am:=[ abs(trunc(num1)-trunc(num2)) ]:
    for i from 0 by 1 to n do
       c:=trunc(10*a);   d:=trunc(10*b);
       a:=frac(evalf(10*a, 2*std));   b:=frac(evalf(10*b, 2*std));
       am:=[op(am),abs(c-d)]:
    od: end: A181184(std);
  • Mathematica
    Abs[RealDigits[Pi, 10, 150][[1]] - RealDigits[GoldenRatio, 10, 150][[1]]]

A187747 (n-th digit of Pi) - (n-th digit of e).

Original entry on oeis.org

1, -6, 3, -7, 3, 1, 1, -2, 3, -5, 1, 3, 0, 7, 5, -2, 0, 0, 3, 1, 0, 2, 4, -4, -4, -1, 1, 2, -1, 2, 7, -1, -6, 0, 4, -1, -3, -6, 4, 0, -1, 2, 2, 3, 0, 6, -3, -2, -4, -8, -5, -4, 3, -5, -4, 0, 1, -2, 0, -2, -3, -1, 7, -5, -4, -2, 3, 8, -6, 0, -2, -3, 6, -1, 3, 3, -3, -4, 1, 4, 0, 4, 1, -5, 7, -3, -5, 2, 7, -5, -3, -2, 2, -3, 0, -5
Offset: 0

Views

Author

Jonathan Vos Post, Jan 03 2013

Keywords

Comments

This is A073223 but without taking absolute values.

Examples

			Pi = 3.141592... and e = 2.718281... so we have
  a(0) = 3 - 2 =  1,
  a(1) = 1 - 7 = -6,
  a(2) = 4 - 1 =  3, ...
		

Crossrefs

Programs

  • Mathematica
    Subtract @@ RealDigits[{Pi, E}, 10, 96][[All, 1]] (* Michael De Vlieger, Feb 15 2020 *)
Showing 1-2 of 2 results.