[go: up one dir, main page]

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!)
Revision History for A132349 (Underlined text is an addition; strikethrough text is a deletion.)

Showing all changes.
A132349 If n is a k-th power with k >= 2 then a(n) = k, otherwise a(n) = 0.
(history; published version)
#10 by Michel Marcus at Tue Aug 13 05:33:40 EDT 2024
STATUS

reviewed

approved

#9 by Joerg Arndt at Tue Aug 13 04:14:01 EDT 2024
STATUS

proposed

reviewed

#8 by Amiram Eldar at Tue Aug 13 02:20:06 EDT 2024
STATUS

editing

proposed

#7 by Amiram Eldar at Tue Aug 13 01:40:38 EDT 2024
MATHEMATICA

a[n_] := Boole[(g = GCD @@ FactorInteger[n][[;; , 2]]) > 1] * g; Array[a, 100] (* Amiram Eldar, Aug 13 2024 *)

PROG

(PARI) r(n) = for(j=1, n, print1(ispower(j)", ")); r(100))", "));

r(100)

CROSSREFS

Cf. A132384-A132350, A132351, A132352, A132384.

STATUS

approved

editing

#6 by N. J. A. Sloane at Sat May 20 07:13:18 EDT 2017
STATUS

proposed

approved

#5 by Antti Karttunen at Sat May 20 02:25:11 EDT 2017
STATUS

editing

proposed

#4 by Antti Karttunen at Sat May 20 02:25:01 EDT 2017
LINKS

Antti Karttunen, <a href="/A132349/b132349.txt">Table of n, a(n) for n = 1..10000</a>

STATUS

approved

editing

#3 by Russ Cox at Fri Mar 30 16:50:43 EDT 2012
AUTHOR

_N. J. A. Sloane (njas(AT)research.att.com), _, Nov 11 2007

Discussion
Fri Mar 30 16:50
OEIS Server: https://oeis.org/edit/global/110
#2 by N. J. A. Sloane at Fri Feb 27 03:00:00 EST 2009
KEYWORD

nonn,new

nonn

AUTHOR

N. J. A. Sloane (njas, (AT)research.att.com), Nov 11 2007

#1 by N. J. A. Sloane at Sun Dec 09 03:00:00 EST 2007
NAME

If n is a k-th power with k >= 2 then a(n) = k, otherwise a(n) = 0.

DATA

0, 0, 0, 2, 0, 0, 0, 3, 2, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 3, 0, 0, 0, 0, 5, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2

OFFSET

1,4

PROG

(PARI) r(n) = for(j=1, n, print1(ispower(j)", ")); r(100)

CROSSREFS

Cf. A132384-A132352.

KEYWORD

nonn,new

AUTHOR

njas, Nov 11 2007

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 August 30 09:19 EDT 2024. Contains 375532 sequences. (Running on oeis4.)