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.

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]]]