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.

A106596 Belgian-3 numbers.

Original entry on oeis.org

3, 10, 11, 12, 14, 15, 21, 23, 30, 31, 33, 34, 35, 39, 47, 51, 52, 59, 63, 69, 73, 75, 78, 94, 100, 101, 102, 103, 104, 105, 107, 110, 111, 112, 113, 115, 116, 120, 123, 133, 141, 146, 147, 151, 153, 154, 158, 159, 163, 164, 166, 168, 183, 185, 191, 196
Offset: 1

Views

Author

Eric Angelini, Jun 07 2005

Keywords

Crossrefs

See A106039 for definition and link.
Cf. A257770.

Programs

  • Haskell
    a106596 n = a106596_list !! (n-1)
    a106596_list = filter belge3 [3..] where
       belge3 x = x == (head $ dropWhile (< x) $
                        scanl (+) 3 $ 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@ 200, belgianQ[#, 3] &] (* Robert G. Wilson v, May 06 2011 *)

Extensions

Offset changed by Reinhard Zumkeller, May 08 2015