A293437 Numbers n that are persistently squarefree for base-2 shifting (in A293430), and for which A163511(n) is also in A293430.
1, 3, 6, 7, 13, 14, 15, 26, 29, 30, 31, 58, 62, 239, 247, 478, 479, 494, 958, 245757, 491514
Offset: 1
Examples
For n = 245757 which itself is squarefree (as 245757 = 3*81919) applying the map x -> floor(x/2) iteratively down to 1 yields a finite sequence 122878, 61439, 30719, 15359, 7679, 3839, 1919, 959, 479, 239, 119, 59, 29, 14, 7, 3, 1, whose terms are all squarefree also. Moreover, A163511(245757) = 6837 = 3*43*53, a squarefree number too (this is already guaranteed by the fact that the two most significant bits in base-2 expansion of 245757 are both 1's). Applying the same approximate halving map iteratively yields now the sequence: 3418, 1709, 854, 427, 213, 106, 53, 26, 13, 6, 3, 1, and also here every term is squarefree. Thus 245757 is included in this sequence.
Programs
-
PARI
default(primelimit,(2^31)+(2^30)); is_persistently_squarefree(n,base) = { while(n>1, if(!issquarefree(n),return(0)); n \= base); (1); }; A005940(n) = { my(p=2, t=1); n--; until(!n\=2, if((n%2), (t*=p), p=nextprime(p+1))); t }; \\ Modified from code of M. F. Hasler A054429(n) = ((3<<#binary(n\2))-n-1); \\ After M. F. Hasler, Aug 18 2014 A163511(n) = if(!n,1,A005940(1+A054429(n))); isA293430(n) = is_persistently_squarefree(n,2); n=0; k=1; while(n <= 2^26, n=n+1; if(isA293430(n)&&isA293430(A163511(n)),write("b293437.txt", k, " ", n);k=k+1));
-
Scheme
;; With Antti Karttunen's IntSeq-library. (define A293437 (MATCHING-POS 1 1 (lambda (n) (and (not (zero? (A293233 n))) (not (zero? (A293233 (A163511 n))))))))
Comments