A161790 The positive integer n is included if 1 is the largest integer of the form {2^k - 1} to divide n.
1, 2, 4, 5, 8, 10, 11, 13, 16, 17, 19, 20, 22, 23, 25, 26, 29, 32, 34, 37, 38, 40, 41, 43, 44, 46, 47, 50, 52, 53, 55, 58, 59, 61, 64, 65, 67, 68, 71, 73, 74, 76, 79, 80, 82, 83, 85, 86, 88, 89, 92, 94, 95, 97, 100, 101, 103, 104, 106, 107, 109, 110, 113, 115, 116, 118, 121, 122, 125, 128, 130, 131, 134, 136, 137, 139, 142, 143
Offset: 1
Keywords
Links
- Diana L. Mecum, Table of n, a(n) for n = 1..2000
Programs
-
Mathematica
DivisorList=Drop[Table[2^k-1,{k,1,20}],1] A161790=Union[Table[If[Length[Join[DivisorList,Drop[Divisors[n],1]]]==Length[Union[DivisorList,Drop[Divisors[n],1]]],n,],{n,1,5000}]] (* Second program: *) Position[Table[DivisorSum[n, 1 &, IntegerQ@ Log2[# + 1] &], {n, 143}], 1][[All, 1]] (* Michael De Vlieger, Jun 11 2018 *)
-
PARI
isok(k) = forstep(i = logint(k+1, 2), 2, -1, if(k % (2^i-1) == 0, return(0))); 1; \\ Amiram Eldar, Jun 30 2025
Formula
Also A154402(a(n)) = 1. - Antti Karttunen, Jun 11 2018
Comments