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.

A106518 Belgian-2 numbers.

Original entry on oeis.org

2, 10, 11, 12, 15, 16, 20, 22, 25, 26, 32, 38, 41, 42, 46, 67, 72, 82, 86, 91, 95, 100, 101, 102, 103, 105, 107, 110, 111, 112, 113, 115, 116, 120, 121, 122, 123, 124, 125, 130, 131, 132, 134, 136, 138, 141, 142, 143
Offset: 1

Views

Author

Eric Angelini, Jun 07 2005

Keywords

Crossrefs

See A106039 for definition and link.
Cf. A257770.

Programs

  • Haskell
    a106518 n = a106518_list !! (n-1)
    a106518_list = filter belge2 [2..] where
       belge2 x = x == (head $ dropWhile (< x) $
                        scanl (+) 2 $ cycle (map (read . return) $ show x))
    -- Reinhard Zumkeller, May 08 2015
  • Mathematica
    belgianQ[n_, k_] := If[n < k, False, Block[{id = Join[{0}, IntegerDigits@ n]}, MemberQ[ Accumulate@ id, Mod[n - k, Plus @@ id]] ]]; Select[ Range@ 145, belgianQ[#, 2] &] (* Robert G. Wilson v, May 06 2011 *)

Extensions

Offset changed by Reinhard Zumkeller, May 08 2015