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.

A061681 a(0)=1; a(n) = a(n-1) + lead(a(n-1)) for n > 0 where for an integer x lead(x) is the leading digit in base 10.

Original entry on oeis.org

1, 2, 4, 8, 16, 17, 18, 19, 20, 22, 24, 26, 28, 30, 33, 36, 39, 42, 46, 50, 55, 60, 66, 72, 79, 86, 94, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134
Offset: 0

Views

Author

Reinhard Zumkeller, Jun 18 2001

Keywords

Examples

			a(100)=176; a(307)=996; a(1000)=1697; a(3132)=9995; a(10000)=16871.
		

Programs

  • Haskell
    a061681 n = a061681_list !! n
    a061681_list = iterate a182324 1  -- Reinhard Zumkeller, Apr 25 2012
  • Mathematica
    NestList[#+First[IntegerDigits[#]]&,1,60] (* Harvey P. Dale, Aug 18 2011 *)
  • PARI
    { default(realprecision, 100); r=log(10); for (n=0, 1000, if (n==0, a=1, a+=a\10^(log(a)\r)); write("b061681.txt", n, " ", a) ) } \\ Harry J. Smith, Jul 26 2009
    

Formula

a(n+1) = A182324(a(n)), a(0) = 1.

Extensions

More terms from Naohiro Nomoto, Sep 10 2001

A095815 a(n) = n + largest digit of n.

Original entry on oeis.org

2, 4, 6, 8, 10, 12, 14, 16, 18, 11, 12, 14, 16, 18, 20, 22, 24, 26, 28, 22, 23, 24, 26, 28, 30, 32, 34, 36, 38, 33, 34, 35, 36, 38, 40, 42, 44, 46, 48, 44, 45, 46, 47, 48, 50, 52, 54, 56, 58, 55, 56, 57, 58, 59, 60, 62, 64, 66, 68, 66, 67, 68, 69, 70, 71, 72, 74, 76, 78, 77, 78
Offset: 1

Views

Author

Jason Earls, Jul 10 2004

Keywords

Examples

			a(19) = 19 + 9 = 28.
a(77) = 77 + 7 = 84.
		

Crossrefs

Cf. A054055; A045844 (iterated).
Cf. A182324.

Programs

  • Haskell
    a095815 n = n + fromIntegral (a054055 n) -- Reinhard Zumkeller, Aug 23 2011
    
  • Mathematica
    #+Max[IntegerDigits[#]]&/@Range[100] (* Harvey P. Dale, May 03 2024 *)
  • Python
    def A095815(n): return n + max(int(d) for d in str(n)) # Chai Wah Wu, Jun 06 2022
Showing 1-2 of 2 results.