[go: up one dir, main page]

login
A106439
Belgian-1 numbers.
13
1, 10, 11, 13, 16, 17, 21, 23, 41, 43, 56, 58, 74, 81, 91, 97, 100, 101, 106, 110, 111, 113, 115, 121, 122, 130, 131, 137, 142, 155, 157, 161, 170, 171, 172, 178, 179, 181, 184, 188, 193, 201
OFFSET
1,2
LINKS
MATHEMATICA
belgianQ[n_, k_] := If[n < k, False, Block[{id = Join[{0}, IntegerDigits@ n]}, MemberQ[ Accumulate@ id, Mod[n - k, Plus @@ id]] ]]; Select[ Range@ 202, belgianQ[#, 1] &] (* Robert G. Wilson v, May 06 2011 *)
PROG
(Haskell)
a106439 n = a106439_list !! (n-1)
a106439_list = filter belge1 [1..] where
belge1 x = x == (head $ dropWhile (< x) $
scanl (+) 1 $ cycle (map (read . return) $ show x))
-- Reinhard Zumkeller, May 08 2015
CROSSREFS
See A106039 for definition and link.
Cf. A257770.
Sequence in context: A093679 A153194 A175224 * A290745 A121263 A121295
KEYWORD
base,easy,nonn
AUTHOR
Eric Angelini, Jun 07 2005
STATUS
approved