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

%I #15 May 08 2015 16:52:40

%S 7,10,11,21,27,29,31,32,37,41,56,70,71,77,85,94,100,101,103,106,110,

%T 111,112,113,117,118,119,122,127,128,131,133,143,152,173,176,201,205

%N Belgian-7 numbers.

%H Reinhard Zumkeller, <a href="/A107018/b107018.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@ 206, belgianQ[#, 7] &] (* _Robert G. Wilson v_, May 06 2011 *)

%o (Haskell)

%o a107018 n = a107018_list !! (n-1)

%o a107018_list = filter belge7 [7..] where

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

%o scanl (+) 7 $ 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 April 19 21:09 EDT 2024. Contains 371798 sequences. (Running on oeis4.)