cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A107018 Belgian-7 numbers.

This page as a plain text file.
%I A107018 #15 May 08 2015 16:52:40
%S A107018 7,10,11,21,27,29,31,32,37,41,56,70,71,77,85,94,100,101,103,106,110,
%T A107018 111,112,113,117,118,119,122,127,128,131,133,143,152,173,176,201,205
%N A107018 Belgian-7 numbers.
%H A107018 Reinhard Zumkeller, <a href="/A107018/b107018.txt">Table of n, a(n) for n = 1..10000</a>
%t A107018 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 A107018 (Haskell)
%o A107018 a107018 n = a107018_list !! (n-1)
%o A107018 a107018_list = filter belge7 [7..] where
%o A107018    belge7 x = x == (head $ dropWhile (< x) $
%o A107018                      scanl (+) 7 $ cycle (map (read . return) $ show x))
%o A107018 -- _Reinhard Zumkeller_, May 08 2015
%Y A107018 See A106039 for definition and link.
%Y A107018 Belgian-k numbers, k=0..9: A106039, A106439, A106518, A106596, A106631, A106792, A107014, A107018, A107032, A107043.
%Y A107018 Cf. A257770.
%K A107018 base,easy,nonn
%O A107018 1,1
%A A107018 _Eric Angelini_, Jun 07 2005
%E A107018 Offset changed by _Reinhard Zumkeller_, May 08 2015