login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A106631 Belgian-4 numbers. 13
4, 10, 11, 13, 14, 20, 21, 22, 24, 25, 31, 32, 37, 40, 43, 44, 51, 54, 57, 64, 65, 76, 82, 84, 87, 89, 92, 98, 100, 101, 104, 110, 111, 112, 114, 116, 121, 122, 124, 125, 127, 128, 137, 140, 141, 142, 144, 145, 148, 149, 151, 154, 158, 172, 177, 191, 196 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
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@ 199, belgianQ[#, 4] &] (* Robert G. Wilson v, May 06 2011 *)
PROG
(Haskell)
a106631 n = a106631_list !! (n-1)
a106631_list = filter belge4 [4..] where
belge4 x = x == (head $ dropWhile (< x) $
scanl (+) 4 $ cycle (map (read . return) $ show x))
-- Reinhard Zumkeller, May 08 2015
CROSSREFS
See A106039 for definition and link.
Cf. A257770.
Sequence in context: A240580 A102535 A074226 * A120261 A310338 A101154
KEYWORD
base,easy,nonn
AUTHOR
Eric Angelini, Jun 07 2005
EXTENSIONS
Offset changed by Reinhard Zumkeller, May 08 2015
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 11:06 EDT 2024. Contains 371967 sequences. (Running on oeis4.)