A337533 1 together with nonsquares whose square part's square root is in the sequence.
1, 2, 3, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23, 24, 26, 27, 28, 29, 30, 31, 33, 34, 35, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 65, 66, 67, 68
Offset: 1
Examples
4 is square and not 1, so 4 is not in the sequence. 12 = 3 * 2^2 is nonsquare, and has square part 4, whose square root (2) is in the sequence. So 12 is in the sequence. 32 = 2 * 4^2 is nonsquare, but has square part 16, whose square root (4) is not in the sequence. So 32 is not in the sequence.
Links
- Robert Israel, Table of n, a(n) for n = 1..10000
- Eric Weisstein's World of Mathematics, Square part
- Index to sequences related to prime signature
Crossrefs
Programs
-
Maple
S:= {1}: for n from 2 to 100 do if not issqr(n) then F:= ifactors(n)[2]; s:= mul(t[1]^floor(t[2]/2),t=F); if member(s,S) then S:= S union {n} fi fi od: sort(convert(S,list)); # Robert Israel, Jan 07 2025
-
Mathematica
pow2Q[n_] := n == 2^IntegerExponent[n, 2]; Select[Range[100], # == 1 || pow2Q[1 + BitOr @@ (FactorInteger[#][[;; , 2]])] &] (* Amiram Eldar, Sep 18 2020 *)
Comments