|
|
|
|
949, 1036, 2362, 2812, 2847, 3108, 7086, 8436, 8541, 9324, 21258, 25308, 25623, 27972, 28009, 63774, 63973, 66124, 75924, 76869, 83916, 84027, 84253, 191322, 191919, 198372, 227772, 230607, 235228, 251748, 252081, 252759, 253216, 573966, 575757
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
If n is in this sequence then so is 3n. - Charlie Neder, Feb 25 2019
|
|
LINKS
|
|
|
PROG
|
(PARI) is1(n, R=divrem(3^logint(n, 3), n), S=0)={while(R[1]!=1&&!bittest(S, R[2]), S+=1<<R[2]; R=divrem(R[2]*3, n)); R[1]!=1||R[2]==0}
is2(n)={while(n, if(n%3>1, return(0)); n\=3); 1; }
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|