login
Numbers n such that string 4,0 occurs in the base 7 representation of n but not of n-1.
0

%I #7 Jan 20 2015 11:28:02

%S 28,77,126,175,196,224,273,322,371,420,469,518,539,567,616,665,714,

%T 763,812,861,882,910,959,1008,1057,1106,1155,1204,1225,1253,1302,1351,

%U 1372,1449,1498,1547,1568,1596,1645,1694,1743,1792

%N Numbers n such that string 4,0 occurs in the base 7 representation of n but not of n-1.

%t Flatten[Position[Partition[Table[If[MemberQ[Partition[ IntegerDigits[ n,7],2,1],{4,0}],1,0],{n,2000}],2,1],{0,1}]]+1 (* _Harvey P. Dale_, Jan 20 2015 *)

%K nonn,base

%O 1,1

%A _Clark Kimberling_