List P contains all positive
integers from 1 to 253 inclusive, and so P contains each integer of the form 2k where k is a positive integer from 1 to 53 inclusive.
Thus, there are 53 such numbers in
the list P.
Since 4ℓ=(22)ℓ=22ℓ, then 4ℓ is in list P exactly when 22ℓ≤253 or 2ℓ≤53 for positive integers ℓ. The largest positive integer ℓ for which 2ℓ≤53 is 26 (since 2×26=52, and 2×27=54).
Thus, for all positive integers $ℓ≤
26,4ℓ$ is in list
P, and so there are 26 such numbers.
We demonstrate this relationship between the powers of 2 and 4 in the table below.
2k
21
22
23
24
25
26
⋯
251
252
253
4ℓ=22ℓ
41=22
42=24
43=26
⋯
426=252
From (b), list P contains
the 26 numbers 4r=22r for positive integers r≤26.
That is, each integer power of 4 in
P is equal to a power of 2 whose exponent is an even positive
integer.
Since 8t=(23)t=23t, then each
integer power of 8 in P is equal to a power of 2 whose exponent is a positive integer
multiple of 3.
Thus, any number in P that is an
integer power of both 4 and 8 must be equal to a power of 2 whose positive integer exponent is both
even and a multiple of 3, and
therefore a multiple of 6.
P contains all numbers 2k for positive integers k≤53, and so P contains the following powers of 2 whose exponent is a multiple of 6: 26, 212, 218, 224, 230, 236, 242, and 248.
For positive integers r and t, there are 8 numbers in P that can be written as both 4r and as 8t, and so there are 26−8=18 numbers in P which can be written as 4r but cannot be written as 8t.
We demonstrate this relationship between the powers of 2, 4
and 8 in the table below.
4r=22r
41
42
43=26
44
45
46=212
⋯
424=248
425
426
8t=23t
82=26
84=212
⋯
816=248
4r
not 8t
41
42
44
45
⋯
425
426