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.

A272189 Values of A004215(n) such that A004215(n+1) = A004215(n) + 8 = A004215(n-1) + 16.

This page as a plain text file.
%I A272189 #19 Apr 25 2016 20:24:37
%S A272189 15,39,47,71,79,103,135,143,167,175,199,207,231,263,271,295,303,327,
%T A272189 335,359,391,399,423,431,463,487,519,527,551,559,583,591,615,647,655,
%U A272189 679,687,711,719,743,775,783,807,815,839,847,871,903,911,935,943,975,999,1031,1039,1063,1071,1095
%N A272189 Values of A004215(n) such that A004215(n+1) = A004215(n) + 8 = A004215(n-1) + 16.
%C A272189 If there are k consecutive natural numbers and all of them are members of A000378, then the maximum value of k is 7. So if we randomly choose 2*7+1 consecutive natural numbers, at least one of them must be member of A004215. This sequence gives the average of 15 consecutive natural numbers in the case there is exactly one member from A004215 in these 15 consecutive natural numbers. In other words, this sequence gives the most isolated terms of A004215.
%C A272189 Numbers n which are 7 mod 16 such that n+5 and n-7 are sums of three squares, together with numbers n which are 15 mod 16 such that n+1 and n-3 are sums of three squares. - _Charles R Greathouse IV_, Apr 25 2016
%e A272189 15 is a term because 8, 9, 10, 11, 12, 13, 14 and 16, 17, 18, 19, 20, 21, 22 are consecutive members of A000378.
%t A272189 Take[#, {2}] & /@ Select[#, Union@ Differences@ # == {8} &] &@ Partition[#, 3, 1] &@ Select[Range@ 1200, Mod[#/4^IntegerExponent[#, 4], 8] == 7 &] // Flatten (* _Michael De Vlieger_, Apr 25 2016, after _Ant King_ at A004215 *)
%o A272189 (PARI) isA004215(n)=(n>>(2*valuation(n, 4)))%8==7
%o A272189 is(n)=my(m=n%16); n>9 && if(m==7, !isA004215(n+5) && !isA004215(n-7), m==15 && !isA004215(n+1) && !isA004215(n-3)) \\ _Charles R Greathouse IV_, Apr 25 2016
%Y A272189 Cf. A000378, A004215.
%K A272189 nonn,easy
%O A272189 1,1
%A A272189 _Altug Alkan_, Apr 22 2016