OFFSET
1,1
COMMENTS
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..1000
Dario A. Alpern, Brilliant Numbers.
EXAMPLE
MATHEMATICA
fQ[n_] := Block[{fi = FactorInteger@ n}, Plus @@ Last /@ fi == 2 && IntegerLength[ fi[[1, 1]], 2] == IntegerLength[ fi[[-1, 1]], 2]]; Select[ Range@ 2866, fQ] (* Robert G. Wilson v, Oct 29 2011 *)
Select[Range@ 3000, And[Length@ # == 2, IntegerLength[#1, 2] == IntegerLength[#2, 2] & @@ #] &@ Flatten@ Map[ConstantArray[#1, #2] & @@ # &, FactorInteger@ #] &] (* Michael De Vlieger, Oct 08 2016 *)
PROG
(PARI) is(n)=bigomega(n)==2&&#binary(factor(n)[1, 1])==#binary(n/factor(n)[1, 1]) \\ Charles R Greathouse IV, Nov 08 2011
(Haskell)
a085721 n = a085721_list !! (n-1)
a085721_list = [p*q | (p, q) <- zip a084126_list a084127_list,
a070939 p == a070939 q]
-- Reinhard Zumkeller, Nov 10 2013
CROSSREFS
KEYWORD
AUTHOR
Reinhard Zumkeller, Jul 20 2003
EXTENSIONS
Edited by Charles R Greathouse IV, Aug 02 2010
STATUS
approved