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.

A247254 a(1)=0; for n>1, a(n+1)= a(n)- A004648(n) if a(n)>= A004648(n) else a(n) + A004648(n).

Original entry on oeis.org

0, 0, 1, 3, 0, 1, 0, 3, 0, 5, 14, 5, 4, 2, 1, 3, 8, 0, 7, 17, 6, 16, 3, 17, 0, 22, 45, 23, 0, 22, 45, 42, 39, 34, 31, 22, 15, 6, 17, 6, 19, 4, 17, 36, 19, 2, 17, 40, 9, 40, 11, 40, 9, 38, 3, 40, 1, 42, 3, 44, 3, 42, 87, 32, 87, 34, 87, 24, 89, 87, 18, 87, 16, 14
Offset: 1

Views

Author

Michel Lagneau, Nov 30 2014

Keywords

Crossrefs

Cf. A004648.

Programs

  • Maple
    A247254 := proc(n)
        option remember;
        local a48 ;
        if n=1 then
            0;
        else
            a48 := A004648(n-1) ;
            if procname(n-1) >= a48 then
                procname(n-1)-a48 ;
            else
                procname(n-1)+a48 ;
            end if;
        end if;
    end proc: # R. J. Mathar, Dec 02 2014