login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A285316
Numbers n for which A019565(n) > n.
6
0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87
OFFSET
1,3
LINKS
MATHEMATICA
a019565[n_]:=Times @@ Prime@ Flatten@ Position[#, 1] &@ Reverse@ IntegerDigits[n, 2] ; Select[Range[0, 100], a019565[#]># &] (* Indranil Ghosh, Apr 18 2017, after Michael De Vlieger *)
PROG
(PARI)
A019565(n) = {my(j, v); factorback(Mat(vector(if(n, #n=vecextract(binary(n), "-1..1")), j, [prime(j), n[j]])~))}; \\ This function from M. F. Hasler
isA285316(n) = (A019565(n) > n);
n=0; k=1; while(k <= 10000, if(isA285316(n), write("b285316.txt", k, " ", n); k=k+1); n=n+1);
(Scheme) ;; with Antti Karttunen's IntSeq-library
(define A285316 (MATCHING-POS 1 0 (lambda (n) (> (A019565 n) n))))
(Python)
from operator import mul
from sympy import prime
from functools import reduce
def a019565(n): return reduce(mul, (prime(i+1) for i, v in enumerate(bin(n)[:1:-1]) if v == '1')) if n > 0 else 1
print([n for n in range(101) if a019565(n)>n]) # Indranil Ghosh, Apr 18 2017, after Chai Wah Wu
CROSSREFS
Complement: A285315.
Cf. A019565.
Sequence in context: A020661 A284837 A068937 * A378287 A362147 A361395
KEYWORD
nonn
AUTHOR
Antti Karttunen, Apr 18 2017
STATUS
approved