Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A145199
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A145199 Not squarefree numbers n such that n+1 is prime. +0
1
4, 12, 16, 18, 28, 36, 40, 52, 60, 72, 88, 96, 100, 108, 112, 126, 136, 148, 150, 156, 162, 172, 180, 192, 196, 198, 228, 232, 240, 250, 256, 268, 270, 276, 280, 292, 306, 312, 316, 336, 348, 352, 372, 378, 388, 396, 400, 408, 420, 432, 448, 456, 460, 486, 490 (list; graph; listen)
OFFSET

1,1

EXAMPLE

4 is in the sequence because it is not squarefree and 5 is prime. [From Emeric Deutsch (deutsch(AT)duke.poly.edu), Oct 12 2008]

MAPLE

Contribution from Emeric Deutsch (deutsch(AT)duke.poly.edu), Oct 12 2008: (Start)

with(numtheory): a:=proc(n) if issqrfree(n)=false and isprime(n+1)=true then n else end if end proc: seq(a(n), n=1..600);

with(numtheory): a:=proc(k) if issqrfree(ithprime(k)-1)=false then ithprime(k)-1 else end if end proc: seq(a(k), k=1..110); (End)

MATHEMATICA

Select[Prime[Range[120]]-1, !SquareFreeQ[ # ]&] [From T. D. Noe (noe(AT)sspectra.com), Oct 06 2008]

CROSSREFS

Cf. A006093.

Cf. A013929, A077064.

Sequence in context: A144976 A119622 A067575 this_sequence A082420 A053362 A077770

Adjacent sequences: A145196 A145197 A145198 this_sequence A145200 A145201 A145202

KEYWORD

easy,nonn

AUTHOR

Giovanni Teofilatto (g.teofilatto(AT)tiscalinet.it), Oct 04 2008

EXTENSIONS

Corrected and extended by T. D. Noe (noe(AT)sspectra.com), Emeric Deutsch (deutsch(AT)duke.poly.edu) and R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Oct 05 2008

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 23 17:09 EST 2009. Contains 167438 sequences.


AT&T Labs Research