OFFSET
1,1
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
MATHEMATICA
belgianQ[n_, k_] := If[n < k, False, Block[{id = Join[{0}, IntegerDigits@ n]}, MemberQ[ Accumulate@ id, Mod[n - k, Plus @@ id]] ]]; Select[ Range@ 211, belgianQ[#, 5] &] (* Robert G. Wilson v, May 06 2011 *)
PROG
(Haskell)
a106792 n = a106792_list !! (n-1)
a106792_list = filter belge5 [5..] where
belge5 x = x == (head $ dropWhile (< x) $
scanl (+) 5 $ cycle ((map (read . return) . show) x))
-- Reinhard Zumkeller, May 08 2015
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Eric Angelini, Jun 07 2005
EXTENSIONS
Offset changed by Reinhard Zumkeller, May 08 2015
STATUS
approved