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.

A069537 Multiples of 2 whose digit sum is 2.

Original entry on oeis.org

2, 20, 110, 200, 1010, 1100, 2000, 10010, 10100, 11000, 20000, 100010, 100100, 101000, 110000, 200000, 1000010, 1000100, 1001000, 1010000, 1100000, 2000000, 10000010, 10000100, 10001000, 10010000, 10100000, 11000000, 20000000, 100000010, 100000100, 100001000
Offset: 1

Views

Author

Amarnath Murthy, Apr 01 2002

Keywords

Crossrefs

Cf. A002024, A002260, A088404 (half).
Subsequence of A005349.
Row n=2 of A245062.

Programs

  • PARI
    a(n) = my(r,s=sqrtint((n-1)<<1,&r), x=s+(r>s), y=if(r>s,r-s,r+s)>>1); 10^x + 10^y; \\ Kevin Ryde, Jul 17 2025
  • Python
    from itertools import product
    def agen():
      digits = 1
      while True:
        for i in range(digits-2): yield int("1"+"0"*(digits-3-i)+"1"+"0"*i+"0")
        yield int("2"+"0"*(digits-1))
        digits += 1
    g = agen()
    print([next(g) for i in range(32)]) # Michael S. Branicky, Feb 20 2021
    

Formula

a(n) = 10^A002024(n-1) + 10^A002260(n-1) for n >= 2. - Kevin Ryde, Jul 17 2025

Extensions

Corrected and extended by Ray Chandler, Sep 28 2003