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.

A030151 Numbers k such that in k^2 the parity of digits alternates.

This page as a plain text file.
%I A030151 #15 Jul 28 2021 04:16:22
%S A030151 0,1,2,3,4,5,6,7,9,11,13,16,19,23,26,27,31,36,69,74,81,84,96,111,113,
%T A030151 119,127,137,181,187,204,237,264,269,273,277,281,296,311,384,404,426,
%U A030151 461,463,539,574,584,606,661,673,677,689,726,736,764,819
%N A030151 Numbers k such that in k^2 the parity of digits alternates.
%H A030151 Giovanni Resta, <a href="/A030151/b030151.txt">Table of n, a(n) for n = 1..10000</a>
%t A030151 upto=2000;tfs=Flatten[Table[{True,False},{Ceiling[IntegerLength[ upto]]}]]; altparQ[n_]:= Module[{n2=n^2},MemberQ[Partition[ tfs,IntegerLength[n2],1], EvenQ/@IntegerDigits[n2]]]; Join[{0},Select[Range[upto],altparQ]] (* _Harvey P. Dale_, May 12 2011 *)
%Y A030151 Cf. A030152, A030153, A030154, A030159.
%K A030151 nonn,base
%O A030151 1,3
%A A030151 _Patrick De Geest_