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.

A106518 Belgian-2 numbers.

This page as a plain text file.
%I A106518 #18 May 08 2015 16:49:49
%S A106518 2,10,11,12,15,16,20,22,25,26,32,38,41,42,46,67,72,82,86,91,95,100,
%T A106518 101,102,103,105,107,110,111,112,113,115,116,120,121,122,123,124,125,
%U A106518 130,131,132,134,136,138,141,142,143
%N A106518 Belgian-2 numbers.
%H A106518 Reinhard Zumkeller, <a href="/A106518/b106518.txt">Table of n, a(n) for n = 1..10000</a>
%t A106518 belgianQ[n_, k_] := If[n < k, False, Block[{id = Join[{0}, IntegerDigits@ n]}, MemberQ[ Accumulate@ id, Mod[n - k, Plus @@ id]] ]]; Select[ Range@ 145, belgianQ[#, 2] &] (* _Robert G. Wilson v_, May 06 2011 *)
%o A106518 (Haskell)
%o A106518 a106518 n = a106518_list !! (n-1)
%o A106518 a106518_list = filter belge2 [2..] where
%o A106518    belge2 x = x == (head $ dropWhile (< x) $
%o A106518                     scanl (+) 2 $ cycle (map (read . return) $ show x))
%o A106518 -- _Reinhard Zumkeller_, May 08 2015
%Y A106518 See A106039 for definition and link.
%Y A106518 Belgian-k numbers, k=0..9: A106039, A106439, A106518, A106596, A106631, A106792, A107014, A107018, A107032, A107043.
%Y A106518 Cf. A257770.
%K A106518 base,easy,nonn
%O A106518 1,1
%A A106518 _Eric Angelini_, Jun 07 2005
%E A106518 Offset changed by _Reinhard Zumkeller_, May 08 2015