Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A106743
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A106743 a(n) = -1 iff n is prime, a(n) = 1 iff n is not squarefree, otherwise (n is nonprime and square-free) a(n) = 0. +0
1
0, -1, -1, 1, -1, 0, -1, 1, 1, 0, -1, 1, -1, 0, 0, 1, -1, 1, -1, 1, 0, 0, -1, 1, 1, 0, 1, 1, -1, 0, -1, 1, 0, 0, 0, 1, -1, 0, 0, 1, -1, 0, -1, 1, 1, 0, -1, 1, 1, 1, 0, 1, -1, 1, 0, 1, 0, 0, -1, 1, -1, 0, 1, 1, 0, 0, -1, 1, 0, 0, -1, 1, -1, 0, 1, 1, 0, 0, -1, 1, 1, 0, -1, 1, 0, 0, 0, 1, -1, 1, 0, 1, 0, 0, 0, 1, -1, 1, 1, 1, -1, 0, -1, 1, 0 (list; graph; listen)
OFFSET

1,1

FORMULA

a(n) = 1 - 0^(A001222(n)-A001221(n)) - 0^(A001222(n)-1), for n>1. - Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), May 23 2005

PROGRAM

(PARI) for(n=1, 105, print1(if(!issquarefree(n), 1, if(isprime(n), -1, 0)), ", "))

CROSSREFS

Cf. A000040 (prime), A013929 (not squarefree), A000469 (nonprime and square-free), A082926.

Sequence in context: A053867 A069513 A092248 this_sequence A011558 A100047 A080891

Adjacent sequences: A106740 A106741 A106742 this_sequence A106744 A106745 A106746

KEYWORD

sign

AUTHOR

Giovanni Teofilatto (g.teofilatto(AT)tiscalinet.it), May 16 2005

EXTENSIONS

Edited and extended by Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), May 16 2005

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 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research