login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A264843 Maximal numbers of consecutive positive integers congruent to 1 modulo 3 that are all squarefree. 2
1, 3, 2, 3, 2, 3, 3, 3, 3, 3, 2, 3, 3, 3, 2, 2, 3, 3, 3, 3, 3, 1, 1, 3, 3, 2, 3, 3, 2, 3, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 1, 1, 3, 3, 2, 3, 1, 1, 3, 3, 3, 3, 3, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 2, 1, 3, 3, 3, 3, 3, 2, 2, 3, 2, 3, 3, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
a(n) takes only values 1,2,3, since from every four numbers == 1 (mod 3), at least one is divisible by 4, hence nonsquarefree.
LINKS
EXAMPLE
From the first integers congruent to 1 (mod 3): 1, 4, 7, 10, 13, 16, 19, 22, 25, 28, 31, 34, 37, ..., the squarefree ones are (1), (7,10,13), (19,22), (31,34,37). So, a(1)=1, a(2)=3, a(3)=2, a(4)=3.
MATHEMATICA
Map[Count[#, True]&, DeleteCases[Split[Map[SquareFreeQ[3#-2]&, Range[500]]], {___, False, ___}]] (* Peter J. C. Moses, Nov 26 2015 *)
PROG
(PARI) lista(nn) = {nb = 0; for (n=0, nn, if (issquarefree(3*n+1), nb++, if (nb, print1(nb, ", ")); nb = 0); ); } \\ Michel Marcus, Dec 15 2015
CROSSREFS
Sequence in context: A168330 A176059 A262785 * A316290 A029211 A246925
KEYWORD
nonn
AUTHOR
Vladimir Shevelev, Nov 26 2015
EXTENSIONS
More terms from Peter J. C. Moses, Nov 26 2015
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 03:30 EDT 2024. Contains 371906 sequences. (Running on oeis4.)