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!)
A107032 Belgian-8 numbers. 13

%I #15 May 08 2015 16:53:24

%S 8,10,11,12,13,14,15,16,17,18,19,20,22,23,26,28,31,35,40,42,43,44,48,

%T 53,62,64,71,74,75,79,80,86,88,97,100,101,102,104,105,106,108,109,110,

%U 111,112,113,115,117,118,119,120,121,123,126,129,132,135,139,141,142,144

%N Belgian-8 numbers.

%H Reinhard Zumkeller, <a href="/A107032/b107032.txt">Table of n, a(n) for n = 1..10000</a>

%t belgianQ[n_, k_] := If[n < k, False, Block[{id = Join[{0}, IntegerDigits@ n]}, MemberQ[ Accumulate@ id, Mod[n - k, Plus @@ id]] ]]; Select[ Range@ 148, belgianQ[#, 8] &] (* _Robert G. Wilson v_, May 06 2011 *)

%o (Haskell)

%o a107032 n = a107032_list !! (n-1)

%o a107032_list = filter belge8 [8..] where

%o belge8 x = x == (head $ dropWhile (< x) $

%o scanl (+) 8 $ cycle (map (read . return) $ show x))

%o -- _Reinhard Zumkeller_, May 08 2015

%Y See A106039 for definition and link.

%Y Belgian-k numbers, k=0..9: A106039, A106439, A106518, A106596, A106631, A106792, A107014, A107018, A107032, A107043.

%Y Cf. A257770.

%K base,easy,nonn

%O 1,1

%A _Eric Angelini_, Jun 07 2005

%E Offset changed by _Reinhard Zumkeller_, May 08 2015

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 August 1 22:11 EDT 2024. Contains 374817 sequences. (Running on oeis4.)