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.

A093099 "Fibonacci-digits": start with "11", append sum of first 2 digits to the preceding number, drop first digit.

Original entry on oeis.org

11, 12, 23, 35, 58, 813, 139, 394, 9412, 41213, 12135, 21353, 13533, 35334, 53348, 33488, 34886, 48867, 886712, 8671216, 67121614, 712161413, 121614138, 216141383, 161413833, 614138337, 141383377, 413833775, 138337755, 383377554, 8337755411, 33775541111
Offset: 1

Views

Author

Bodo Zinser, Mar 22 2004

Keywords

Examples

			a(6): sum of first 2 digits of a(5)=13, append 13 to 58 and get 5813, drop first digit and get 813.
		

Crossrefs

Programs

  • Maple
    f:= proc(x) local t,q;
      t:= floor(x/10^(ilog10(x)-1));
      t:= (t mod 10) + floor(t/10);
      t:= t+x*10^(ilog10(t)+1);
      q:= 10^ilog10(t);
      t - floor(t/q)*q
    end proc:x:= 11: R:= x:
    for n from 2 to 100 do x:= f(x); R:= R,x od:R; # Robert Israel, May 21 2020
    # second Maple program:
    a:= proc(n) option remember; `if`(n=1, 11, (s->parse(cat(
          s[2..-1], parse(s[1])+parse(s[2]))))(""||(a(n-1))))
        end:
    seq(a(n), n=1..35);  # Alois P. Heinz, May 21 2020
  • Mathematica
    fd[n_]:=Module[{idn=IntegerDigits[n]},FromDigits[Rest[Join[idn,IntegerDigits[Total[Take[idn,2]]]]]]]
    NestList[fd,11,30]  (* Harvey P. Dale, Mar 06 2011 *)

A093093 "Fibonacci in digits - up and down": start with a(1)=1, a(2)=1; repeatedly adjoin either the sum of the two previous terms (if that sum happens to be odd) or else adjoin digits of the sum of previous two terms (if that sum happens to be even).

Original entry on oeis.org

1, 1, 2, 3, 5, 8, 13, 21, 3, 4, 2, 4, 7, 6, 6, 11, 13, 1, 2, 17, 2, 4, 1, 4, 3, 19, 19, 6, 5, 5, 7, 2, 2, 3, 8, 25, 11, 1, 0, 1, 2, 9, 4, 5, 11, 33, 3, 6, 1, 2, 1, 1, 3, 11, 13, 9, 1, 6, 4, 4, 3, 6, 9, 7, 3, 3, 2, 4, 1, 4, 2, 4, 2, 2, 1, 0, 7, 1, 0, 8, 7, 9, 15, 1, 6, 1, 0, 6, 5, 6, 5, 5, 6, 6, 6, 4, 3, 1, 7
Offset: 1

Views

Author

Bodo Zinser, Mar 20 2004

Keywords

Examples

			... a(8)=a(6)+a(7), a(9)=left digit of (a(7)+a(8)=13+21=3 4) as 34 is even, a(10)=right digit of (a(7)+a(8)=13+21=3 4) as 34 is even, a(13)=a(9)+a(10) as odd, ...
		

Crossrefs

Showing 1-2 of 2 results.